X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9750481f368dceba820004ab479d31deb4860253..78c67cb6425acb3b93d48a7a14f554bcd32ed72a:/src/generic/timer.cpp diff --git a/src/generic/timer.cpp b/src/generic/timer.cpp index 640ddfe53d..a4afe39e25 100644 --- a/src/generic/timer.cpp +++ b/src/generic/timer.cpp @@ -7,7 +7,7 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "timer.h" #endif @@ -64,7 +64,7 @@ public: wxTimer *timer; bool running; wxTimerDesc *next, *prev; - unsigned long shotTime; + wxTimerTick_t shotTime; volatile bool *deleteFlag; // see comment in ~wxTimer }; @@ -91,8 +91,11 @@ void wxTimerScheduler::QueueTimer(wxTimerDesc *desc, wxTimerTick_t when) desc->shotTime = when; desc->running = TRUE; - wxLogTrace( wxT("timer"), wxT("queued timer %p at tick %ld"), - desc->timer, (long) when); +#ifndef __WXMGL__ + wxLogTrace( wxT("timer"), + wxT("queued timer %p at tick %") wxLongLongFmtSpec _T("d"), + desc->timer, when.GetValue()); +#endif if ( m_timers ) { @@ -144,8 +147,11 @@ void wxTimerScheduler::NotifyTimers() if ( !timerDeleted ) { - wxLogTrace( wxT("timer"), wxT("notified timer %p sheduled for %ld"), - desc->timer, (long) desc->shotTime); +#ifndef __WXMGL__ + wxLogTrace( wxT("timer"), + wxT("notified timer %p sheduled for %") wxLongLongFmtSpec _T("d"), + desc->timer, desc->shotTime.GetValue() ); +#endif desc->deleteFlag = NULL; if ( !oneShot )