X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9814d926198c75333d972f408fa527f84e9355d3..137c8bde085d6d5b7c459902d2ea1a198ab48765:/src/generic/timer.cpp diff --git a/src/generic/timer.cpp b/src/generic/timer.cpp index 63fe3a3e9f..92b513ef35 100644 --- a/src/generic/timer.cpp +++ b/src/generic/timer.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: mgl/timer.cpp +// Name: src/generic/timer.cpp // Purpose: wxTimer implementation // Author: Vaclav Slavik // Id: $Id$ @@ -7,10 +7,6 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma implementation "timer.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -24,11 +20,14 @@ // is in wxEventLoop::Dispatch(). // ---------------------------------------------------------------------------- +#if wxUSE_TIMER + #include "wx/timer.h" -#if wxUSE_TIMER +#ifndef WX_PRECOMP + #include "wx/log.h" +#endif -#include "wx/log.h" #include "wx/module.h" // ---------------------------------------------------------------------------- @@ -194,7 +193,11 @@ void wxTimerScheduler::NotifyTimers() QueueTimer(desc, now + desc->timer->GetInterval()); } else + { desc = m_timers; + if (!desc) + break; + } } } }