From 11d4aa9d057891f63449812c1bf58b873d6362d6 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 30 Jun 2008 13:35:51 +0000 Subject: [PATCH] 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 --- src/common/datetime.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/datetime.cpp b/src/common/datetime.cpp index e1cfda60f1..af922ee6fe 100644 --- a/src/common/datetime.cpp +++ b/src/common/datetime.cpp @@ -171,11 +171,11 @@ wxCUSTOM_TYPE_INFO(wxDateTime, wxToStringConverter , 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;