]> git.saurik.com Git - wxWidgets.git/commitdiff
Pas long to _get_timezone() even for VC8.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 4 Nov 2010 10:49:10 +0000 (10:49 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 4 Nov 2010 10:49:10 +0000 (10:49 +0000)
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

src/common/datetime.cpp

index 4bbca2e476758bc7548f67b260bb58ac744fd159..2a26b7b1213c7e51535f551678a7cdc0f5e6f4b1 100644 (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;
         }