summaryrefslogtreecommitdiff
path: root/time
diff options
context:
space:
mode:
authorwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2002-12-11 03:02:37 +0000
committerwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2002-12-11 03:02:37 +0000
commit23097ccda550bc9576f593cfea9b879eb3178048 (patch)
tree38b921f6430a72bdd0245893273be44951131191 /time
parent3765d7369ba6b6ef15cb25b5838a6668b4aa22d7 (diff)
downloadlibapr-23097ccda550bc9576f593cfea9b879eb3178048.tar.gz
Without strftime() on wince, apr_strftime is currently unimplemented.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64141 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'time')
-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
}