#else // !GUI
// we can't define wxEventLoop differently in GUI and base libraries so use
// a #define to still allow writing wxEventLoop in the user code
- #if defined(__WXMSW__) || defined(__UNIX__)
+ #if wxUSE_CONSOLE_EVENTLOOP && (defined(__WXMSW__) || defined(__UNIX__))
#define wxEventLoop wxConsoleEventLoop
#else // we still must define it somehow for the code below...
#define wxEventLoop wxEventLoopBase
wxEventLoopBase *m_evtLoopOld;
};
+#if wxUSE_CONSOLE_EVENTLOOP
+
class wxEventLoopGuarantor
{
public:
wxEventLoop *m_evtLoopNew;
};
+#endif // wxUSE_CONSOLE_EVENTLOOP
+
#endif // _WX_EVTLOOP_H_