X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/69dada2e7a616b263e73211e35c687196c8f89b5..360ae33f4392ebb8b625b8ef3b2542b58f8a3a6b:/include/wx/chkconf.h?ds=sidebyside diff --git a/include/wx/chkconf.h b/include/wx/chkconf.h index 61ada5424b..1de81cba3d 100644 --- a/include/wx/chkconf.h +++ b/include/wx/chkconf.h @@ -56,6 +56,12 @@ # define wxUSE_EXCEPTIONS 0 #endif /* wxNO_EXCEPTIONS */ +/* we also must disable exceptions if compiler doesn't support them */ +#if defined(_MSC_VER) && !defined(_CPPUNWIND) +# undef wxUSE_EXCEPTIONS +# define wxUSE_EXCEPTIONS 0 +#endif /* VC++ without exceptions support */ + /* tests for non GUI features