X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/76015a6bb79156d8af1b5e8b4b8e46b4e192d18f..4a2d030adfa836f6ada1830c9057170d053bcc64:/src/common/evtloopcmn.cpp?ds=sidebyside diff --git a/src/common/evtloopcmn.cpp b/src/common/evtloopcmn.cpp index 2399911f68..f7b5138cc2 100644 --- a/src/common/evtloopcmn.cpp +++ b/src/common/evtloopcmn.cpp @@ -2,10 +2,9 @@ // Name: src/common/evtloopcmn.cpp // Purpose: common wxEventLoop-related stuff // Author: Vadim Zeitlin -// Modified by: // Created: 2006-01-12 -// RCS-ID: $Id$ -// Copyright: (c) 2006 Vadim Zeitlin +// Copyright: (c) 2006, 2013 Vadim Zeitlin +// (c) 2013 Rob Bresalier // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// @@ -124,12 +123,16 @@ wxEventLoopBase::AddSourceForFD(int fd, wxEventLoopSourceHandler *handler, int flags) { +#if wxUSE_CONSOLE_EVENTLOOP // Delegate to the event loop sources manager defined by it. wxEventLoopSourcesManagerBase* const manager = wxApp::GetValidTraits().GetEventLoopSourcesManager(); wxCHECK_MSG( manager, NULL, wxS("Must have wxEventLoopSourcesManager") ); return manager->AddSourceForFD(fd, handler, flags); +#else // !wxUSE_CONSOLE_EVENTLOOP + return NULL; +#endif // wxUSE_CONSOLE_EVENTLOOP/!wxUSE_CONSOLE_EVENTLOOP } #endif // wxUSE_EVENTLOOP_SOURCE