]> git.saurik.com Git - wxWidgets.git/blobdiff - src/dfb/app.cpp
Compilationf fixes according to patch #1828105.
[wxWidgets.git] / src / dfb / app.cpp
index bfde03508efa4fb9ba67e793a3de3b3cfb8c8fcf..9fac9fec8673f619727125dd11b80884264b1aa6 100644 (file)
 
 IMPLEMENT_DYNAMIC_CLASS(wxApp, wxEvtHandler)
 
-BEGIN_EVENT_TABLE(wxApp, wxEvtHandler)
-    EVT_IDLE(wxAppBase::OnIdle)
-END_EVENT_TABLE()
-
 wxApp::wxApp()
 {
 }
@@ -188,7 +184,9 @@ bool wxApp::Yield(bool onlyIfNeeded)
 
     s_inYield = true;
 
+#if wxUSE_LOG
     wxLog::Suspend();
+#endif // wxUSE_LOG
 
     wxEventLoop * const
         loop = wx_static_cast(wxEventLoop *, wxEventLoop::GetActive());
@@ -200,7 +198,9 @@ bool wxApp::Yield(bool onlyIfNeeded)
     // OnUpdateUI() which is a nice (and desired) side effect)
     while ( ProcessIdle() ) {}
 
+#if wxUSE_LOG
     wxLog::Resume();
+#endif // wxUSE_LOG
 
     s_inYield = false;