X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2ddff00c923d454f651aba32c8fe3654fd303e43..4813bb8d72d4e6821e031f2b19baaa338b714d39:/src/unix/baseunix.cpp?ds=sidebyside diff --git a/src/unix/baseunix.cpp b/src/unix/baseunix.cpp index 16aa2c8c58..f675818f43 100644 --- a/src/unix/baseunix.cpp +++ b/src/unix/baseunix.cpp @@ -33,6 +33,7 @@ #include "wx/apptrait.h" #include "wx/unix/execute.h" #include "wx/evtloop.h" + #include "wx/unix/private/timer.h" // for waitpid() @@ -83,6 +84,8 @@ wxConsoleAppTraits::WaitForChild(wxExecuteData& execData) return exitcode; } +#if wxUSE_TIMER + wxTimerImpl *wxConsoleAppTraits::CreateTimerImpl(wxTimer *timer) { // this doesn't work yet as there is no main loop in console applications @@ -90,8 +93,6 @@ wxTimerImpl *wxConsoleAppTraits::CreateTimerImpl(wxTimer *timer) return new wxUnixTimerImpl(timer); } -wxEventLoopBase *wxConsoleAppTraits::CreateEventLoop() -{ - return new wxEventLoop(); -} +#endif // wxUSE_TIMER +// Note: wxConsoleAppTraits::CreateEventLoop() is defined in evtloopunix.cpp!