-#if !defined(WX_TIMEZONE) && !defined(WX_GMTOFF_IN_TM)
- #if defined(__WXPALMOS__)
- #define WX_GMTOFF_IN_TM
- #elif defined(__BORLANDC__) || defined(__MINGW32__) || defined(__VISAGECPP__)
- #define WX_TIMEZONE _timezone
- #elif defined(__MWERKS__)
- long wxmw_timezone = 28800;
- #define WX_TIMEZONE wxmw_timezone
- #elif defined(__DJGPP__) || defined(__WINE__)
- #include <sys/timeb.h>
- #include <values.h>
- static long wxGetTimeZone()
- {
- struct timeb tb;
- ftime(&tb);
- return tb.timezone;
- }
- #define WX_TIMEZONE wxGetTimeZone()
- #elif defined(__DARWIN__)
- #define WX_GMTOFF_IN_TM
- #elif wxCHECK_VISUALC_VERSION(8)
- // While _timezone is still present in (some versions of) VC CRT, it's
- // deprecated and _get_timezone() should be used instead.
- static long wxGetTimeZone()
- {
- // We must initialize the time zone information before using it
- // (this will be done only once internally).
- _tzset();