]> git.saurik.com Git - wxWidgets.git/commitdiff
Applied patch [ 1211219 ] Build fix for configurations without wxUSE_LOG
authorJulian Smart <julian@anthemion.co.uk>
Mon, 30 May 2005 09:08:49 +0000 (09:08 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Mon, 30 May 2005 09:08:49 +0000 (09:08 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34403 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/app.cpp
src/gtk1/app.cpp

index 8932e2198d6f5b3b3e6e9f58a4ce1964be17fa56..4d25eb73def0d8591edb22c7be25bf22ea9f32c2 100644 (file)
@@ -136,9 +136,11 @@ bool wxApp::Yield(bool onlyIfNeeded)
     // never finish.
     wxTheApp->RemoveIdleTag();
 
+#if wxUSE_LOG
     // disable log flushing from here because a call to wxYield() shouldn't
     // normally result in message boxes popping up &c
     wxLog::Suspend();
+#endif
 
     while (gtk_events_pending())
         gtk_main_iteration();
@@ -151,8 +153,10 @@ bool wxApp::Yield(bool onlyIfNeeded)
     // return value of Processidle().
     ProcessIdle();
 
+#if wxUSE_LOG
     // let the logs be flashed again
     wxLog::Resume();
+#endif
 
     wxIsInsideYield = FALSE;
 
index 8932e2198d6f5b3b3e6e9f58a4ce1964be17fa56..4d25eb73def0d8591edb22c7be25bf22ea9f32c2 100644 (file)
@@ -136,9 +136,11 @@ bool wxApp::Yield(bool onlyIfNeeded)
     // never finish.
     wxTheApp->RemoveIdleTag();
 
+#if wxUSE_LOG
     // disable log flushing from here because a call to wxYield() shouldn't
     // normally result in message boxes popping up &c
     wxLog::Suspend();
+#endif
 
     while (gtk_events_pending())
         gtk_main_iteration();
@@ -151,8 +153,10 @@ bool wxApp::Yield(bool onlyIfNeeded)
     // return value of Processidle().
     ProcessIdle();
 
+#if wxUSE_LOG
     // let the logs be flashed again
     wxLog::Resume();
+#endif
 
     wxIsInsideYield = FALSE;