X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8f6bb2602bfbd09e6fed1759bdc0211fd6a68473..a7689c49fe02c0c065facf736ab28b19f5997b7c:/include/wx/event.h diff --git a/include/wx/event.h b/include/wx/event.h index 99710b7d7c..6e4805549c 100644 --- a/include/wx/event.h +++ b/include/wx/event.h @@ -33,11 +33,11 @@ #include "wx/meta/convertible.h" #endif -#include "wx/meta/removeref.h" +// Currently VC6 and VC7 are known to not be able to compile CallAfter() code, +// so disable it for them. +#if !defined(__VISUALC__) || wxCHECK_VISUALC_VERSION(8) + #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