corrected strptime() test, don't use NULL pointer as this crashes under Darwin [backport from HEAD]

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@46465 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-06-14 10:24:33 +00:00
parent 7cf8af693d
commit b9b6aefc64
2 changed files with 4 additions and 2 deletions

3
configure vendored
View File

@@ -42674,7 +42674,8 @@ else
int main()
{
return !!strptime("", "%x", NULL);
struct tm t;
return !!strptime("", "%x", &t);
}
_ACEOF

View File

@@ -6127,7 +6127,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,