From 4091f8c54fe89d4f73d089eb9cb1ea32e829384a Mon Sep 17 00:00:00 2001 From: John Maddock Date: Fri, 8 Feb 2002 12:39:21 +0000 Subject: [PATCH] Added BOOST_NO_EXCEPTIONS support [SVN r12754] --- include/boost/config/compiler/borland.hpp | 6 ++++++ include/boost/config/compiler/visualc.hpp | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/include/boost/config/compiler/borland.hpp b/include/boost/config/compiler/borland.hpp index 45d3f8b9..989bad08 100644 --- a/include/boost/config/compiler/borland.hpp +++ b/include/boost/config/compiler/borland.hpp @@ -34,6 +34,12 @@ # define BOOST_NO_USING_TEMPLATE #endif +// +// check for exception handling support: +#ifndef _CPPUNWIND +# define BOOST_NO_EXCEPTIONS +#endif + #define BOOST_COMPILER "Borland C++ version " BOOST_STRINGIZE(__BORLANDC__) // diff --git a/include/boost/config/compiler/visualc.hpp b/include/boost/config/compiler/visualc.hpp index d7468e21..3f8b5fe5 100644 --- a/include/boost/config/compiler/visualc.hpp +++ b/include/boost/config/compiler/visualc.hpp @@ -58,6 +58,13 @@ # define BOOST_NO_INTRINSIC_WCHAR_T #endif +// +// check for exception handling support: +#ifndef _CPPUNWIND +# define BOOST_NO_EXCEPTIONS +#endif + + #define BOOST_COMPILER "Microsoft Visual C++ version " BOOST_STRINGIZE(_MSC_VER) //