git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47317
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#include "wx/apptrait.h"
#include "wx/unix/execute.h"
#include "wx/evtloop.h"
-#include "wx/unix/private/timer.h"
+
+#if wxUSE_TIMER
+ #include "wx/unix/private/timer.h"
+#endif // wxUSE_TIMER
// for waitpid()
#include <sys/types.h>
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);
}
+#endif // wxUSE_TIMER
+
wxEventLoopBase *wxConsoleAppTraits::CreateEventLoop()
{
return new wxEventLoop();
#include <errno.h>
#include "wx/thread.h"
#include "wx/module.h"
-#include "wx/generic/private/timer.h"
#include "wx/unix/private/epolldispatcher.h"
#include "wx/private/selectdispatcher.h"
+#if wxUSE_TIMER
+ #include "wx/generic/private/timer.h"
+#endif
+
#define TRACE_EVENTS _T("events")
//this code should not be compiled when GUI is defined
#include "wx/wxprec.h"
+#if wxUSE_TIMER
+
#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/module.h"
return wxGetLocalTimeMillis() * 1000L;
}
+#endif // wxUSE_TIMER
+