X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dcbd3762e86258781ed81202977f680665190528..2b9a7d4cc2f5f55df3d83f7cf2160cf9a509a4f2:/src/common/datetime.cpp diff --git a/src/common/datetime.cpp b/src/common/datetime.cpp index 9294901531..a042dd5947 100644 --- a/src/common/datetime.cpp +++ b/src/common/datetime.cpp @@ -130,7 +130,13 @@ wxCUSTOM_TYPE_INFO(wxDateTime, wxToStringConverter , wxFromStringCon #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 *); + +// char *strptime(const char *, const char *, struct tm *); + // However, we DON'T want to just provide it here because we would + // crash and/or overwrite data when strptime from OS X tries + // to fill in MW's struct tm which is two fields shorter (no TZ stuff) + // So for now let's just say we don't have strptime + #undef HAVE_STRPTIME #endif #if defined(__MWERKS__) && wxUSE_UNICODE