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
This commit is contained in:
parent
056b067f47
commit
8f0b4082f4
3
configure
vendored
3
configure
vendored
@ -42482,7 +42482,8 @@ else
|
||||
|
||||
int main()
|
||||
{
|
||||
return !!strptime("", "%x", NULL);
|
||||
struct tm t;
|
||||
return !!strptime("", "%x", &t);
|
||||
}
|
||||
|
||||
_ACEOF
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user