X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7b14c561d9f8cdfbbfbf05b0b1eef1dd63ece3e6..7f8c0d74d7025b6c677fbd88890ea10d302ef3d5:/src/gtk1/timer.cpp?ds=inline

diff --git a/src/gtk1/timer.cpp b/src/gtk1/timer.cpp
index f5330bc012..3b28f1d1c2 100644
--- a/src/gtk1/timer.cpp
+++ b/src/gtk1/timer.cpp
@@ -8,11 +8,12 @@
 /////////////////////////////////////////////////////////////////////////////
 
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
 #pragma implementation "timer.h"
 #endif
 
-#include "wx/defs.h"
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
 
 #if wxUSE_TIMER
 
@@ -24,7 +25,7 @@
 // wxTimer
 // ----------------------------------------------------------------------------
 
-IMPLEMENT_ABSTRACT_CLASS(wxTimer, wxObject)
+IMPLEMENT_ABSTRACT_CLASS(wxTimer, wxEvtHandler)
 
 extern "C" gint timeout_callback( gpointer data )
 {