X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8f6bb2602bfbd09e6fed1759bdc0211fd6a68473..f6669958924c3c3833e2932b65598b06073d2e65:/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