X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5b56bffb334c0776508108d66938ad661ef3d30a..f8a139493553049e0b92db4bbee11deb33093ee3:/src/x11/app.cpp?ds=sidebyside diff --git a/src/x11/app.cpp b/src/x11/app.cpp index 094bfdddbb..6afd9e2006 100644 --- a/src/x11/app.cpp +++ b/src/x11/app.cpp @@ -24,9 +24,9 @@ #include "wx/dialog.h" #include "wx/timer.h" #include "wx/memory.h" + #include "wx/gdicmn.h" #endif -#include "wx/gdicmn.h" #include "wx/module.h" #include "wx/evtloop.h" #include "wx/filename.h" @@ -668,10 +668,12 @@ void wxApp::WakeUpIdle() // Create display, and other initialization bool wxApp::OnInitGui() { +#if wxUSE_LOG // Eventually this line will be removed, but for // now we don't want to try popping up a dialog // for error messages. delete wxLog::SetActiveTarget(new wxLogStderr); +#endif if (!wxAppBase::OnInitGui()) return false;