X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bd362275b853cc0308bbde6a60bb2525d659f709..4a699e3a59b19c21b6faae714b56cac5a75df2e2:/src/common/time.cpp diff --git a/src/common/time.cpp b/src/common/time.cpp index ff163db0cc..4a76dfac48 100644 --- a/src/common/time.cpp +++ b/src/common/time.cpp @@ -26,7 +26,7 @@ #include "wx/time.h" #ifndef WX_PRECOMP - #ifdef __WXMSW__ + #ifdef __WINDOWS__ #include "wx/msw/wrapwin.h" #endif #include "wx/intl.h" @@ -48,11 +48,6 @@ # endif #endif -#if defined(__MWERKS__) && defined(__WXMSW__) -# undef HAVE_FTIME -# undef HAVE_GETTIMEOFDAY -#endif - #ifndef __WXWINCE__ #include #else @@ -72,10 +67,6 @@ #include #endif -#if defined(__MWERKS__) && wxUSE_UNICODE - #include -#endif - #if defined(__DJGPP__) || defined(__WINE__) #include #include @@ -223,10 +214,6 @@ int wxGetTimeZone() return WX_TIMEZONE; #elif defined(__BORLANDC__) || defined(__MINGW32__) || defined(__VISAGECPP__) return _timezone; - #elif defined(__MWERKS__) - // This is just plain wrong but apparently MetroWerks runtime didn't have - // any way to get the time zone. - return 28800; #else // unknown platform -- assume it has timezone return timezone; #endif // different time zone variables @@ -274,7 +261,7 @@ long wxGetUTCTime() wxLongLong wxGetUTCTimeUSec() { -#if defined(__WXMSW__) +#if defined(__WINDOWS__) FILETIME ft; ::GetSystemTimeAsFileTime(&ft); @@ -309,7 +296,7 @@ wxLongLong wxGetUTCTimeMillis() // If possible, use a function which avoids conversions from // broken-up time structures to milliseconds -#if defined(__WXMSW__) +#if defined(__WINDOWS__) FILETIME ft; ::GetSystemTimeAsFileTime(&ft);