]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/timer.h
Added missing NO_GCC_PRAGMA check.
[wxWidgets.git] / include / wx / timer.h
index a16209c387af4dcaf7f5a908c1d2eef66a03eca8..9e9ed4e5233018db1b0cbb4a3e1b4e4d84ce9c00 100644 (file)
@@ -187,7 +187,7 @@ private:
 typedef void (wxEvtHandler::*wxTimerEventFunction)(wxTimerEvent&);
 
 #define EVT_TIMER(timerid, func) \
-    DECLARE_EVENT_TABLE_ENTRY( wxEVT_TIMER, timerid, -1, (wxObjectEventFunction) (wxEventFunction) (wxTimerEventFunction) & func, NULL),
+    DECLARE_EVENT_TABLE_ENTRY( wxEVT_TIMER, timerid, -1, (wxObjectEventFunction) (wxEventFunction)  wxStaticCastEvent( wxTimerEventFunction, & func ), NULL),
 
 #endif // wxUSE_GUI && wxUSE_TIMER