X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c2ca375c5620209d77a88d2d378bdcdedbc82e7e..0af07cc24519a07e1948169568c979fea7465ce2:/src/unix/baseunix.cpp diff --git a/src/unix/baseunix.cpp b/src/unix/baseunix.cpp index 822a55bcb6..01d4281e9d 100644 --- a/src/unix/baseunix.cpp +++ b/src/unix/baseunix.cpp @@ -32,6 +32,9 @@ #include "wx/apptrait.h" #include "wx/unix/execute.h" +#include "wx/evtloop.h" +#include "wx/gsocket.h" + #include "wx/unix/private/timer.h" // for waitpid() @@ -82,10 +85,15 @@ wxConsoleAppTraits::WaitForChild(wxExecuteData& execData) return exitcode; } -wxTimerImpl* -wxConsoleAppTraits::CreateTimerImpl(wxTimer *timer) +#if wxUSE_TIMER + +wxTimerImpl *wxConsoleAppTraits::CreateTimerImpl(wxTimer *timer) { // this doesn't work yet as there is no main loop in console applications // (but it will be added later) return new wxUnixTimerImpl(timer); } + +#endif // wxUSE_TIMER + +// Note: wxConsoleAppTraits::CreateEventLoop() is defined in evtloopunix.cpp!