From 1a7cfc94a314d69f72f9e7c511ff126e1e69a1e2 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 25 Aug 2008 19:23:26 +0000 Subject: [PATCH] compilation fixes for wxUSE_CONSOLE_EVENTLOOP==0 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55263 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/evtloop.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/wx/evtloop.h b/include/wx/evtloop.h index 0be2ab6dc7..bb22bb84db 100644 --- a/include/wx/evtloop.h +++ b/include/wx/evtloop.h @@ -156,7 +156,7 @@ protected: #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 @@ -223,6 +223,8 @@ private: wxEventLoopBase *m_evtLoopOld; }; +#if wxUSE_CONSOLE_EVENTLOOP + class wxEventLoopGuarantor { public: @@ -249,4 +251,6 @@ private: wxEventLoop *m_evtLoopNew; }; +#endif // wxUSE_CONSOLE_EVENTLOOP + #endif // _WX_EVTLOOP_H_