summaryrefslogtreecommitdiff
path: root/time/win32
diff options
context:
space:
mode:
authorWilliam A. Rowe Jr <wrowe@apache.org>2002-12-11 03:02:37 +0000
committerWilliam A. Rowe Jr <wrowe@apache.org>2002-12-11 03:02:37 +0000
commit2510ce4976c00ce2c1d88a3adaf83bebe3ebd180 (patch)
tree38b921f6430a72bdd0245893273be44951131191 /time/win32
parent164cd20672926eb8bcb532f6f5f51cb8b38c7116 (diff)
downloadapr-2510ce4976c00ce2c1d88a3adaf83bebe3ebd180.tar.gz
Without strftime() on wince, apr_strftime is currently unimplemented.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64141 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'time/win32')
-rw-r--r--time/win32/timestr.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/time/win32/timestr.c b/time/win32/timestr.c
index c78e6a1d9..38c53e76d 100644
--- a/time/win32/timestr.c
+++ b/time/win32/timestr.c
@@ -155,6 +155,9 @@ APR_DECLARE(apr_status_t) apr_ctime(char *date_str, apr_time_t t)
return APR_SUCCESS;
}
+
+#ifndef _WIN32_WCE
+
int win32_strftime_extra(char *s, size_t max, const char *format,
const struct tm *tm) {
/* If the new format string is bigger than max, the result string won't fit
@@ -216,12 +219,18 @@ int win32_strftime_extra(char *s, size_t max, const char *format,
}
free(new_format);
return return_value;
- }
+}
+
+#endif
+
APR_DECLARE(apr_status_t) apr_strftime(char *s, apr_size_t *retsize,
apr_size_t max, const char *format,
apr_time_exp_t *xt)
{
+#ifdef _WIN32_WCE
+ return APR_ENOTIMPL;
+#else
struct tm tm;
memset(&tm, 0, sizeof tm);
tm.tm_sec = xt->tm_sec;
@@ -235,4 +244,5 @@ APR_DECLARE(apr_status_t) apr_strftime(char *s, apr_size_t *retsize,
tm.tm_isdst = xt->tm_isdst;
(*retsize) = win32_strftime_extra(s, max, format, &tm);
return APR_SUCCESS;
+#endif
}