From 4652511f90ff770a99195d1d0fe016684fcf03af Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 10 Mar 2005 19:06:26 +0000 Subject: [PATCH] disable wxUSE_EXCEPTIONS when compiling with VC++ but without /GX (a.k.a. /EHsc) switch git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32716 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/chkconf.h | 6 ++++++ 1 file changed, 6 insertions(+) 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