X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7fa03f04345b620d1a14529b05961116b20a1297..8d0a7b563acf4bd7e75824ba2076a7ab4d81a650:/include/wx/timer.h diff --git a/include/wx/timer.h b/include/wx/timer.h index 409f88dc53..f17a83a091 100644 --- a/include/wx/timer.h +++ b/include/wx/timer.h @@ -17,15 +17,15 @@ #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 // ---------------------------------------------------------------------------- @@ -190,7 +190,7 @@ private: 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))