Pas long to _get_timezone() even for VC8.
Apparently the MSDN documentation for VC8 is wrong and _get_timezone() function expects a long and not int when using it (as is already the case with VC9 and VC10). Closes #12653. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66013 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -142,13 +142,7 @@ wxCUSTOM_TYPE_INFO(wxDateTime, wxToStringConverter<wxDateTime> , wxFromStringCon
|
||||
// deprecated and _get_timezone() should be used instead.
|
||||
static long wxGetTimeZone()
|
||||
{
|
||||
// The type of _get_timezone() parameter seems to have changed
|
||||
// between VC8 and VC9.
|
||||
#ifdef __VISUALC8__
|
||||
int t;
|
||||
#else
|
||||
long t;
|
||||
#endif
|
||||
long t;
|
||||
_get_timezone(&t);
|
||||
return t;
|
||||
}
|
||||
|
Reference in New Issue
Block a user