Apply parts of patch #1719888 to fix compilation on Mac and with
monolithic builds git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46080 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -54,7 +54,6 @@ public:
|
|||||||
virtual bool Pending() const;
|
virtual bool Pending() const;
|
||||||
virtual bool Dispatch();
|
virtual bool Dispatch();
|
||||||
|
|
||||||
protected:
|
|
||||||
// implement base class pure virtual
|
// implement base class pure virtual
|
||||||
virtual void WakeUp();
|
virtual void WakeUp();
|
||||||
};
|
};
|
||||||
|
@@ -12,6 +12,10 @@
|
|||||||
#include "wx/log.h"
|
#include "wx/log.h"
|
||||||
#include "wx/evtloop.h"
|
#include "wx/evtloop.h"
|
||||||
|
|
||||||
|
//this code should not be compiled when GUI is defined
|
||||||
|
//(monolithic build issue)
|
||||||
|
#if !wxUSE_GUI
|
||||||
|
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
@@ -75,3 +79,5 @@ bool wxAppConsoleUnix::SetSignalHandler(int signal, SignalHandler handler)
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // !wxUSE_GUI
|
||||||
|
@@ -35,6 +35,10 @@
|
|||||||
|
|
||||||
#define TRACE_EVENTS _T("events")
|
#define TRACE_EVENTS _T("events")
|
||||||
|
|
||||||
|
//this code should not be compiled when GUI is defined
|
||||||
|
//(monolithic build issue)
|
||||||
|
#if !wxUSE_GUI
|
||||||
|
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
// wxEventLoop::PipeIOHandler implementation
|
// wxEventLoop::PipeIOHandler implementation
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
@@ -190,3 +194,4 @@ void wxConsoleEventLoop::OnNextIteration()
|
|||||||
wxTheApp->CheckSignal();
|
wxTheApp->CheckSignal();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // !wxUSE_GUI
|
||||||
|
Reference in New Issue
Block a user