From: Vadim Zeitlin Date: Fri, 15 Jun 2007 00:29:54 +0000 (+0000) Subject: corrected strptime() test, don't use NULL pointer as this crashes under Darwin X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/8f0b4082f4139ba25052bc09d9944373b7e68176 corrected strptime() test, don't use NULL pointer as this crashes under Darwin git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46473 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/configure b/configure index f556f13e6e..a92f381984 100755 --- a/configure +++ b/configure @@ -42482,7 +42482,8 @@ else int main() { - return !!strptime("", "%x", NULL); + struct tm t; + return !!strptime("", "%x", &t); } _ACEOF diff --git a/configure.in b/configure.in index 523a3b67e0..c01a9c41b1 100644 --- a/configure.in +++ b/configure.in @@ -6134,7 +6134,8 @@ if test "$wxUSE_DATETIME" = "yes"; then int main() { - return !!strptime("", "%x", NULL); + struct tm t; + return !!strptime("", "%x", &t); } ], wx_cv_func_strptime_ok=yes,