compilation fixes for wxUSE_CONSOLE_EVENTLOOP==0

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55263 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2008-08-25 19:23:26 +00:00
parent c74fc1e130
commit 1a7cfc94a3

View File

@ -156,7 +156,7 @@ protected:
#else // !GUI #else // !GUI
// we can't define wxEventLoop differently in GUI and base libraries so use // we can't define wxEventLoop differently in GUI and base libraries so use
// a #define to still allow writing wxEventLoop in the user code // 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 #define wxEventLoop wxConsoleEventLoop
#else // we still must define it somehow for the code below... #else // we still must define it somehow for the code below...
#define wxEventLoop wxEventLoopBase #define wxEventLoop wxEventLoopBase
@ -223,6 +223,8 @@ private:
wxEventLoopBase *m_evtLoopOld; wxEventLoopBase *m_evtLoopOld;
}; };
#if wxUSE_CONSOLE_EVENTLOOP
class wxEventLoopGuarantor class wxEventLoopGuarantor
{ {
public: public:
@ -249,4 +251,6 @@ private:
wxEventLoop *m_evtLoopNew; wxEventLoop *m_evtLoopNew;
}; };
#endif // wxUSE_CONSOLE_EVENTLOOP
#endif // _WX_EVTLOOP_H_ #endif // _WX_EVTLOOP_H_