]> git.saurik.com Git - wxWidgets.git/commitdiff
disable wxUSE_EXCEPTIONS when compiling with VC++ but without /GX (a.k.a. /EHsc)...
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 10 Mar 2005 19:06:26 +0000 (19:06 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 10 Mar 2005 19:06:26 +0000 (19:06 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32716 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/chkconf.h

index 61ada5424bcee5b69377be933808970997a20b80..1de81cba3d524208f532b0facf4c573fd90d1616 100644 (file)
 #   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