X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/74e10fcc6ad3dd08e94996c2687f15725c95a0dd..2d14a14c573db4b8f8959b1460a269cf23defbcf:/include/wx/unix/private/timer.h diff --git a/include/wx/unix/private/timer.h b/include/wx/unix/private/timer.h index 17776738c9..630676cb37 100644 --- a/include/wx/unix/private/timer.h +++ b/include/wx/unix/private/timer.h @@ -11,6 +11,8 @@ #ifndef _WX_UNIX_PRIVATE_TIMER_H_ #define _WX_UNIX_PRIVATE_TIMER_H_ +#if wxUSE_TIMER + #include "wx/private/timer.h" // the type used for milliseconds is large enough for microseconds too but @@ -21,7 +23,9 @@ typedef wxMilliClock_t wxUsecClock_t; // wxTimer implementation class for Unix platforms // ---------------------------------------------------------------------------- -class wxUnixTimerImpl : public wxTimerImpl +// NB: we have to export at least this symbol from the shared library, because +// it's used by wxDFB's wxCore +class WXDLLIMPEXP_BASE wxUnixTimerImpl : public wxTimerImpl { public: wxUnixTimerImpl(wxTimer *timer); @@ -108,8 +112,9 @@ public: // it returns false if there are no timers bool GetNext(wxUsecClock_t *remaining) const; - // trigger the timer event for all timers which have expired - void NotifyExpired(); + // trigger the timer event for all timers which have expired, return true + // if any did + bool NotifyExpired(); private: // ctor and dtor are private, this is a singleton class only created by @@ -135,4 +140,6 @@ private: // returns the number of microseconds since the Epoch extern wxUsecClock_t wxGetLocalTimeUsec(); +#endif // wxUSE_TIMER + #endif // _WX_UNIX_PRIVATE_TIMER_H_