X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a0cb0ba509fad1fb966d4d5277ff28071d7a8477..7948c0c24401c496c04da3c28f1f1f2f282ba327:/src/generic/timer.cpp diff --git a/src/generic/timer.cpp b/src/generic/timer.cpp index 39974a6b8e..7294f94ee3 100644 --- a/src/generic/timer.cpp +++ b/src/generic/timer.cpp @@ -43,7 +43,10 @@ extern "C" ulong _EVT_getTicks(); #define GetMillisecondsTime() _EVT_getTicks() #else - #define GetMillisecondsTime() wxGetLocalTimeMillis().ToLong() +// #define GetMillisecondsTime() wxGetLocalTimeMillis().ToLong() + // Suppresses the debug warning in ToLong. FIXME: check + // that we don't drastically lose precision + #define GetMillisecondsTime() (unsigned long) wxGetLocalTimeMillis().GetValue() #endif // ----------------------------------------------------------------------------