X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2f6b64a90bbfbde1778309fe24f01cb0c8ec1caf..661698e54f2bc599dc1a961ffbae08ccdd6b9b97:/include/wx/evtloopsrc.h?ds=sidebyside diff --git a/include/wx/evtloopsrc.h b/include/wx/evtloopsrc.h index dd54b9e4a3..227583b776 100644 --- a/include/wx/evtloopsrc.h +++ b/include/wx/evtloopsrc.h @@ -11,6 +11,9 @@ #ifndef _WX_EVTLOOPSRC_H_ #define _WX_EVTLOOPSRC_H_ +// Include the header to get wxUSE_EVENTLOOP_SOURCE definition from it. +#include "wx/evtloop.h" + // ---------------------------------------------------------------------------- // wxEventLoopSource: a source of events which may be added to wxEventLoop // ---------------------------------------------------------------------------- @@ -89,9 +92,11 @@ inline wxEventLoopSource::~wxEventLoopSource() { } #if defined(__WXGTK20__) #include "wx/gtk/evtloopsrc.h" -#elif defined(__WXOSX__) +#endif + +#if defined(__DARWIN__) #include "wx/osx/evtloopsrc.h" -#endif // platform +#endif #endif // wxUSE_EVENTLOOP_SOURCE