Fix new wxExecute() code compilation with wxUSE_CONSOLE_EVENTLOOP==0.
Nothing is going to work without the console apps/base traits support for the event loop but at least make it compile. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74531 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -124,12 +124,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
|
||||
|
||||
Reference in New Issue
Block a user