X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c2ca375c5620209d77a88d2d378bdcdedbc82e7e..ca77701441e39245dcbfce903049e76f166979e5:/include/wx/gtk/private/timer.h diff --git a/include/wx/gtk/private/timer.h b/include/wx/gtk/private/timer.h index 2753541ef6..f5b58dc9d8 100644 --- a/include/wx/gtk/private/timer.h +++ b/include/wx/gtk/private/timer.h @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: wx/private/gtk/timer.h +// Name: wx/gtk/private/timer.h // Purpose: wxTimerImpl for wxGTK // Author: Robert Roebling // Id: $Id$ @@ -10,6 +10,8 @@ #ifndef _WX_GTK_PRIVATE_TIMER_H_ #define _WX_GTK_PRIVATE_TIMER_H_ +#if wxUSE_TIMER + #include "wx/private/timer.h" //----------------------------------------------------------------------------- @@ -19,7 +21,7 @@ class WXDLLIMPEXP_CORE wxGTKTimerImpl : public wxTimerImpl { public: - wxGTKTimerImpl(wxTimer* timer) : wxTimerImpl(timer) { m_sourceId = 0; }; + wxGTKTimerImpl(wxTimer* timer) : wxTimerImpl(timer) { m_sourceId = 0; } virtual bool Start( int millisecs = -1, bool oneShot = false ); virtual void Stop(); @@ -29,4 +31,6 @@ protected: int m_sourceId; }; +#endif // wxUSE_TIMER + #endif // _WX_GTK_PRIVATE_TIMER_H_