]> git.saurik.com Git - wxWidgets.git/commitdiff
disable new events for VC9 too, it fails when linking in DLL build (#10000)
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 12 Jan 2009 15:16:39 +0000 (15:16 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 12 Jan 2009 15:16:39 +0000 (15:16 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58044 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/msw/chkconf.h

index c5d0b77e83d29f933bd302ef8ef1ec9ae0373198..375f080b71acc9344cc788ff2c0bd8b8cc0783bb 100644 (file)
 #   define wxUSE_POSTSCRIPT 1
 #endif
 
 #   define wxUSE_POSTSCRIPT 1
 #endif
 
-/* VC6 and 7 currently can't handle template Connect() overloads: */
+/*
+   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 !wxEVENTS_COMPATIBILITY_2_8
-#   if defined(__VISUALC__) && !wxCHECK_VISUALC_VERSION(8)
+#   if defined(__VISUALC__)
 #       undef wxEVENTS_COMPATIBILITY_2_8
 #       define wxEVENTS_COMPATIBILITY_2_8 1
 #   endif
 #       undef wxEVENTS_COMPATIBILITY_2_8
 #       define wxEVENTS_COMPATIBILITY_2_8 1
 #   endif