summaryrefslogtreecommitdiff
path: root/utils/config.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2014-05-13 16:37:49 +0100
committerVincent Sanders <vince@kyllikki.org>2014-05-13 16:37:49 +0100
commit1a3ee6090d2fdb81bef935929938af20279bc879 (patch)
treec3a0418511e29c9a245a3d87ae146d117d5e3591 /utils/config.h
parent6c466c985f3c39df995b886c2b95f307d1285045 (diff)
downloadnetsurf-1a3ee6090d2fdb81bef935929938af20279bc879.tar.gz
netsurf-1a3ee6090d2fdb81bef935929938af20279bc879.tar.bz2
add strptime compatability
Diffstat (limited to 'utils/config.h')
-rw-r--r--utils/config.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/utils/config.h b/utils/config.h
index 543bafa1b..12b4b7fc0 100644
--- a/utils/config.h
+++ b/utils/config.h
@@ -38,6 +38,14 @@ char *strndup(const char *s, size_t n);
char *strcasestr(const char *haystack, const char *needle);
#endif
+#if (defined(riscos) || defined(_WIN32))
+#undef HAVE_STRPTIME
+#define strptime nsc_time_strptime
+char *nsc_time_strptime(const char *s, const char *format, struct tm *tm);
+#else
+#define HAVE_STRPTIME
+#endif
+
/* For some reason, UnixLib defines this unconditionally.
* Assume we're using UnixLib if building for RISC OS. */
#if ((defined(_GNU_SOURCE) && !defined(__APPLE__)) || defined(riscos))