]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/evtloopunix.cpp
make it possible to build in ANSI build on Windows again
[wxWidgets.git] / src / unix / evtloopunix.cpp
index 1aadf8f4983d03de0dcad32981f8b542084a672f..897f39a5bc1e3844b70b0a8a61257b1ede20d862 100644 (file)
 #include <errno.h>
 #include "wx/thread.h"
 #include "wx/module.h"
 #include <errno.h>
 #include "wx/thread.h"
 #include "wx/module.h"
-#include "wx/generic/private/timer.h"
+#include "wx/unix/private/timer.h"
 #include "wx/unix/private/epolldispatcher.h"
 #include "wx/private/selectdispatcher.h"
 
 #define TRACE_EVENTS _T("events")
 
 #include "wx/unix/private/epolldispatcher.h"
 #include "wx/private/selectdispatcher.h"
 
 #define TRACE_EVENTS _T("events")
 
+//this code should not be compiled when GUI is defined
+//(monolithic build issue)
+#if !wxUSE_GUI
+
 // ===========================================================================
 // wxEventLoop::PipeIOHandler implementation
 // ===========================================================================
 // ===========================================================================
 // wxEventLoop::PipeIOHandler implementation
 // ===========================================================================
@@ -140,7 +144,7 @@ wxConsoleEventLoop::wxConsoleEventLoop()
                     &m_wakeupPipe,
                     wxFDIO_INPUT
                   );
                     &m_wakeupPipe,
                     wxFDIO_INPUT
                   );
-};
+}
 
 //-----------------------------------------------------------------------------
 // events dispatch and loop handling
 
 //-----------------------------------------------------------------------------
 // events dispatch and loop handling
@@ -190,3 +194,4 @@ void wxConsoleEventLoop::OnNextIteration()
     wxTheApp->CheckSignal();
 }
 
     wxTheApp->CheckSignal();
 }
 
+#endif // !wxUSE_GUI