VC8 compilation fix after last change (#9665)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@54435 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-06-30 13:35:51 +00:00
parent c2bf832bee
commit 11d4aa9d05

View File

@@ -171,11 +171,11 @@ wxCUSTOM_TYPE_INFO(wxDateTime, wxToStringConverter<wxDateTime> , wxFromStringCon
#define WX_GMTOFF_IN_TM
#elif defined(__VISUALC8__)
// _timezone is not present in VC8 static run-time library but
// _get_timezone() is
// _get_timezone() is so just use it for all builds
static long wxGetTimeZone()
{
static int s_timezone = INT_MAX; // invalid timezone
if ( s_timezone == INT_MAX )
static long s_timezone = LONG_MAX; // invalid timezone
if ( s_timezone == LONG_MAX )
_get_timezone(&s_timezone);
return s_timezone;