// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
-// ============================================================================
-// declarations
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// headers
-// ----------------------------------------------------------------------------
-
#ifdef __GNUG__
#pragma implementation "timer.h"
#endif
#pragma hdrstop
#endif
+#include "wx/window.h"
+#include "wx/msw/private.h"
+
#ifndef WX_PRECOMP
#include "wx/setup.h"
#include "wx/list.h"
+ #include "wx/event.h"
#include "wx/app.h"
#endif
#include "wx/log.h"
#include "wx/timer.h"
-#include "wx/msw/private.h"
#include <time.h>
#include <sys/types.h>
-#if !defined(__SC__) && !defined(__GNUWIN32__)
+#if !defined(__SC__) && !defined(__GNUWIN32__) && !defined(__MWERKS__)
#include <sys/timeb.h>
#endif
if (milliseconds < 0)
milliseconds = lastMilli;
- wxCHECK_MSG( milliseconds > 0, FALSE, "invalid value for timer timeour" );
+ wxCHECK_MSG( milliseconds > 0, FALSE, _T("invalid value for timer timeour") );
lastMilli = milli = milliseconds;
// ----------------------------------------------------------------------------
// private functions
// ----------------------------------------------------------------------------
-static void wxProcessTimer(wxTimer& timer)
+void wxProcessTimer(wxTimer& timer)
{
// Avoid to process spurious timer events
if ( timer.id == 0)
{
wxNode *node = wxTimerList.Find((long)idTimer);
- wxCHECK_MSG( node, 0, "bogus timer id in wxTimerProc" );
+ wxCHECK_MSG( node, 0, _T("bogus timer id in wxTimerProc") );
wxProcessTimer(*(wxTimer *)node->Data());