#pragma interface "timerbase.h"
#endif
-#include "wx/setup.h"
+#include "wx/defs.h"
+
+#if wxUSE_GUI && wxUSE_TIMER
+
#include "wx/object.h"
#include "wx/longlong.h"
#include "wx/event.h"
-
#include "wx/stopwatch.h" // for backwards compatibility
-#if wxUSE_GUI && wxUSE_TIMER
-
// ----------------------------------------------------------------------------
// wxTimer
// ----------------------------------------------------------------------------
typedef void (wxEvtHandler::*wxTimerEventFunction)(wxTimerEvent&);
#define wxTimerEventHandler(func) \
- (wxObjectEventFunction)wxStaticCastEvent(wxTimerEventFunction, &func)
+ (wxObjectEventFunction)(wxEventFunction)wxStaticCastEvent(wxTimerEventFunction, &func)
#define EVT_TIMER(timerid, func) \
wx__DECLARE_EVT1(wxEVT_TIMER, timerid, wxTimerEventHandler(func))