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:
Vadim Zeitlin
2010-11-04 10:49:10 +00:00
parent b87b399c48
commit 2a9a4f5be9

View File

@@ -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;
}