]> git.saurik.com Git - wxWidgets.git/commitdiff
timezone is not defined in DJGPP in any form, use ftime() to get it
authorVáclav Slavík <vslavik@fastmail.fm>
Sat, 15 Dec 2001 23:16:33 +0000 (23:16 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sat, 15 Dec 2001 23:16:33 +0000 (23:16 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13029 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/datetime.cpp

index 672a97e7a96c8cd97a3cf54a427e2af21f91df6f..23080fef24752804d61d316ba2f21cd7ea130159 100644 (file)
     #elif defined(__MWERKS__)
         long wxmw_timezone = 28800;
         #define WX_TIMEZONE wxmw_timezone;
+    #elif defined(__DJGPP__)
+        #include <sys/timeb.h>
+        static long wxGetTimeZone()
+        {
+            struct timeb tb;
+            ftime(&tb);
+            return tb.timezone;
+        }
+        #define WX_TIMEZONE wxGetTimeZone()
     #else // unknown platform - try timezone
         #define WX_TIMEZONE timezone
     #endif