]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/msw/chkconf.h
Skeleton for generic Drag code
[wxWidgets.git] / include / wx / msw / chkconf.h
index 930edc47a48832395dcc15db8dca2a86fbf2a444..375f080b71acc9344cc788ff2c0bd8b8cc0783bb 100644 (file)
 #   define wxUSE_POSTSCRIPT 1
 #endif
 
+/*
+   Currently MSVC can't build the library with new-style events:
+    - VC6 simply doesn't have good enough templates support
+    - VC7 always seems to choos the Connect() overload using Functor, even when
+    the argument is a class method
+    - VC9 compiles the code fine but fails at linking stage in DLL build
+ */
+#if !wxEVENTS_COMPATIBILITY_2_8
+#   if defined(__VISUALC__)
+#       undef wxEVENTS_COMPATIBILITY_2_8
+#       define wxEVENTS_COMPATIBILITY_2_8 1
+#   endif
+#endif
+
 #endif /* _WX_MSW_CHKCONF_H_ */