X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/69dada2e7a616b263e73211e35c687196c8f89b5..b554cf63711f985030c5d5f338f9614d158a8718:/include/wx/chkconf.h

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