X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b46b1d59d6f69ad80dcf5955375578a6504d100a..6908078e2759d5036152e763337fe12acb2e9b89:/src/unix/baseunix.cpp diff --git a/src/unix/baseunix.cpp b/src/unix/baseunix.cpp index 9dd19ba020..b2dacab6dd 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,13 @@ wxTimerImpl *wxConsoleAppTraits::CreateTimerImpl(wxTimer *timer) return new wxUnixTimerImpl(timer); } -wxEventLoop *wxConsoleAppTraits::CreateEventLoop() +#endif // wxUSE_TIMER + +#if wxUSE_CONSOLE_EVENTLOOP + +wxEventLoopBase *wxConsoleAppTraits::CreateEventLoop() { return new wxEventLoop(); } +#endif // wxUSE_CONSOLE_EVENTLOOP