From: David Elliott Date: Sun, 27 Mar 2005 08:38:34 +0000 (+0000) Subject: Declare strptime when using MSL headers on OS X. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/dcbd3762e86258781ed81202977f680665190528 Declare strptime when using MSL headers on OS X. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33086 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/datetime.cpp b/src/common/datetime.cpp index 7f1f7924a0..9294901531 100644 --- a/src/common/datetime.cpp +++ b/src/common/datetime.cpp @@ -127,6 +127,12 @@ wxCUSTOM_TYPE_INFO(wxDateTime, wxToStringConverter , wxFromStringCon #undef HAVE_STRPTIME #endif // broken strptime() +#if defined(HAVE_STRPTIME) && defined(__DARWIN__) && defined(_MSL_USING_MW_C_HEADERS) && _MSL_USING_MW_C_HEADERS + // configure detects strptime as linkable because it's in the OS X + // System library but MSL headers don't declare it. + char *strptime(const char *, const char *, struct tm *); +#endif + #if defined(__MWERKS__) && wxUSE_UNICODE #include #endif