]> git.saurik.com Git - wxWidgets.git/commitdiff
Declare strptime when using MSL headers on OS X.
authorDavid Elliott <dfe@tgwbd.org>
Sun, 27 Mar 2005 08:38:34 +0000 (08:38 +0000)
committerDavid Elliott <dfe@tgwbd.org>
Sun, 27 Mar 2005 08:38:34 +0000 (08:38 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33086 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/datetime.cpp

index 7f1f7924a082a434dd3d5b5cc1257b663f756abc..929490153187d29c7957d96e5faa9152664046c4 100644 (file)
@@ -127,6 +127,12 @@ wxCUSTOM_TYPE_INFO(wxDateTime, wxToStringConverter<wxDateTime> , 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 <wtime.h>
 #endif