#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()
return exitcode;
}
+#if wxUSE_TIMER
+
wxTimerImpl *wxConsoleAppTraits::CreateTimerImpl(wxTimer *timer)
{
// this doesn't work yet as there is no main loop in console applications
return new wxUnixTimerImpl(timer);
}
-wxEventLoopBase *wxConsoleAppTraits::CreateEventLoop()
-{
- return new wxEventLoop();
-}
+#endif // wxUSE_TIMER
+// Note: wxConsoleAppTraits::CreateEventLoop() is defined in evtloopunix.cpp!