X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/52c9b3490726ee4ad722d7a8fe329e9533ac94fb..36abe9d421ebb33873f012a63fbdb210ff771682:/src/common/evtloopcmn.cpp diff --git a/src/common/evtloopcmn.cpp b/src/common/evtloopcmn.cpp index 5cdd254975..3db4ddacf6 100644 --- a/src/common/evtloopcmn.cpp +++ b/src/common/evtloopcmn.cpp @@ -26,14 +26,18 @@ #include "wx/evtloop.h" +#ifndef WX_PRECOMP + #include "wx/app.h" +#endif //WX_PRECOMP + // ---------------------------------------------------------------------------- // globals // ---------------------------------------------------------------------------- -wxEventLoop *wxEventLoopBase::ms_activeLoop = NULL; +wxEventLoopBase *wxEventLoopBase::ms_activeLoop = NULL; // wxEventLoopManual is unused in the other ports -#if defined(__WXMSW__) || defined(__WXMAC__) +#if defined(__WXMSW__) || defined(__WXMAC__) || defined(__WXDFB__) || (defined(__UNIX__) && wxUSE_BASE) // ============================================================================ // wxEventLoopManual implementation @@ -53,7 +57,7 @@ int wxEventLoopManual::Run() // ProcessIdle() and Dispatch() below may throw so the code here should // be exception-safe, hence we must use local objects for all actions we // should undo - wxEventLoopActivator activate(wx_static_cast(wxEventLoop *, this)); + wxEventLoopActivator activate(this); // we must ensure that OnExit() is called even if an exception is thrown // from inside Dispatch() but we must call it from Exit() in normal @@ -148,5 +152,4 @@ void wxEventLoopManual::Exit(int rc) WakeUp(); } -#endif // __WXMSW__ || __WXMAC__ - +#endif // __WXMSW__ || __WXMAC__ || __WXDFB__