X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2ddff00c923d454f651aba32c8fe3654fd303e43..858a3a7a456d362339752e320bb2e8a50610dfdc:/src/unix/baseunix.cpp diff --git a/src/unix/baseunix.cpp b/src/unix/baseunix.cpp index 16aa2c8c58..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); } +#endif // wxUSE_TIMER + +#if wxUSE_CONSOLE_EVENTLOOP + wxEventLoopBase *wxConsoleAppTraits::CreateEventLoop() { return new wxEventLoop(); } +#endif // wxUSE_CONSOLE_EVENTLOOP