diff --git a/include/wx/msw/chkconf.h b/include/wx/msw/chkconf.h index b1c8c9125c..502d40be42 100644 --- a/include/wx/msw/chkconf.h +++ b/include/wx/msw/chkconf.h @@ -403,7 +403,7 @@ /* VC6 can't handle the templates for the 'type safe events': */ #if !wxEVENTS_COMPATIBILITY_2_8 -# ifdef __VISUALC6__ +# if wxVISUALC_VERSION && !wxCHECK_VISUALC_VERSION(8) # undef wxEVENTS_COMPATIBILITY_2_8 # define wxEVENTS_COMPATIBILITY_2_8 1 # endif