]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/event.h
support SDK < 10.6, fixes #14902
[wxWidgets.git] / include / wx / event.h
index 99710b7d7c625fee19ea2b3cb567bc8b419b2b6b..6e4805549c66deafbd7b146d0a262645f2ec7baa 100644 (file)
     #include "wx/meta/convertible.h"
 #endif
 
     #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
 
     #define wxHAS_CALL_AFTER
 #endif