From 713a0efc617935b1da6151d98ff111e3bde52c3d Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sat, 15 Dec 2001 23:16:33 +0000 Subject: [PATCH] timezone is not defined in DJGPP in any form, use ftime() to get it git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13029 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/datetime.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/common/datetime.cpp b/src/common/datetime.cpp index 672a97e7a9..23080fef24 100644 --- a/src/common/datetime.cpp +++ b/src/common/datetime.cpp @@ -103,6 +103,15 @@ #elif defined(__MWERKS__) long wxmw_timezone = 28800; #define WX_TIMEZONE wxmw_timezone; + #elif defined(__DJGPP__) + #include + 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 -- 2.50.0