X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8e62855a3fecf13954e850d64df98033ef48762b..6fa6d65956285379aa1d99b76d92db76aaecf11e:/include/wx/msw/chkconf.h?ds=sidebyside diff --git a/include/wx/msw/chkconf.h b/include/wx/msw/chkconf.h index 502d40be42..375f080b71 100644 --- a/include/wx/msw/chkconf.h +++ b/include/wx/msw/chkconf.h @@ -401,9 +401,15 @@ # define wxUSE_POSTSCRIPT 1 #endif -/* VC6 can't handle the templates for the 'type safe events': */ +/* + 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 wxVISUALC_VERSION && !wxCHECK_VISUALC_VERSION(8) +# if defined(__VISUALC__) # undef wxEVENTS_COMPATIBILITY_2_8 # define wxEVENTS_COMPATIBILITY_2_8 1 # endif