From b0c025e9fda24751e878b93d3740fc96fa458ba4 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 10 Oct 2018 19:06:11 +0200 Subject: [PATCH] Build fix for wxUSE_CONSOLE_EVENTLOOP==0 under Unix Don't declare GetEventLoopSourcesManager() in Unix wxAppTraits if console event loops are not used. See https://github.com/wxWidgets/wxWidgets/pull/953 --- include/wx/unix/apptbase.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/wx/unix/apptbase.h b/include/wx/unix/apptbase.h index ff41981407..5ce97d6837 100644 --- a/include/wx/unix/apptbase.h +++ b/include/wx/unix/apptbase.h @@ -48,11 +48,11 @@ public: virtual wxFDIOManager *GetFDIOManager(); #endif // wxUSE_SOCKETS -#if wxUSE_EVENTLOOP_SOURCE +#if wxUSE_CONSOLE_EVENTLOOP && wxUSE_EVENTLOOP_SOURCE // Return a non-NULL pointer to the object responsible for managing the // event loop sources in this kind of application. virtual wxEventLoopSourcesManagerBase* GetEventLoopSourcesManager(); -#endif // wxUSE_CONSOLE_EVENTLOOP +#endif // wxUSE_CONSOLE_EVENTLOOP && wxUSE_CONSOLE_EVENTLOOP protected: // Wait for the process termination by running the given event loop until