diff --git a/src/osx/core/evtloop_cf.cpp b/src/osx/core/evtloop_cf.cpp index 9eefc0d22b..7fb81172b2 100644 --- a/src/osx/core/evtloop_cf.cpp +++ b/src/osx/core/evtloop_cf.cpp @@ -302,6 +302,7 @@ bool wxCFEventLoop::Pending() const int wxCFEventLoop::DoProcessEvents() { +#if wxUSE_UIACTIONSIMULATOR if ( m_shouldWaitForEvent ) { int handled = DispatchTimeout( 1000 ); @@ -310,6 +311,7 @@ int wxCFEventLoop::DoProcessEvents() return handled; } else +#endif return DispatchTimeout( 0 ); }