X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/856cad9ac7f40f463045d8a04684950fb54a5cf3..3cc638ed7f1c7f114a6683714567d90f0ba9ded2:/include/wx/event.h?ds=sidebyside diff --git a/include/wx/event.h b/include/wx/event.h index 3396eb2a88..99710b7d7c 100644 --- a/include/wx/event.h +++ b/include/wx/event.h @@ -35,6 +35,12 @@ #include "wx/meta/removeref.h" +#ifdef wxHAS_REMOVEREF + // CallAfter() implementation requires wxRemoveRef(), so just disable it + // for compilers too broken to not allow defining it. + #define wxHAS_CALL_AFTER +#endif + // ---------------------------------------------------------------------------- // forward declarations // ---------------------------------------------------------------------------- @@ -1276,6 +1282,8 @@ private: // done asynchronously, i.e. at some later time, instead of immediately when // the event object is constructed. +#ifdef wxHAS_CALL_AFTER + // This is a base class used to process all method calls. class wxAsyncMethodCallEvent : public wxEvent { @@ -1423,6 +1431,9 @@ private: const ParamType2 m_param2; }; +#endif // wxHAS_CALL_AFTER + + #if wxUSE_GUI @@ -3294,6 +3305,7 @@ public: // NOTE: uses AddPendingEvent(); call only from secondary threads #endif +#ifdef wxHAS_CALL_AFTER // Asynchronous method calls: these methods schedule the given method // pointer for a later call (during the next idle event loop iteration). // @@ -3331,6 +3343,7 @@ public: static_cast(this), method, x1, x2) ); } +#endif // wxHAS_CALL_AFTER // Connecting and disconnecting