git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22377
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#ifdef HAVE_STRPTIME
+// glibc2 doesn't define this in the headers unless _XOPEN_SOURCE is defined
+// which, unfortunately, wreaks havoc elsewhere
+#if defined(__GLIBC__) && (__GLIBC__ == 2)
+ extern "C" char *strptime(const char *, const char *, struct tm *);
+#endif
+
// Unicode-friendly strptime() wrapper
static const wxChar *
CallStrptime(const wxChar *input, const char *fmt, tm *tm)