From b22c9ced688932e411044834c1b9d596cd786887 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Fri, 11 Apr 2003 10:47:00 +0000 Subject: [PATCH] Added exception handling detection, disabled thread support for platforms where we can actually detect whether it is on or not. [SVN r18234] --- include/boost/config/compiler/gcc.hpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/include/boost/config/compiler/gcc.hpp b/include/boost/config/compiler/gcc.hpp index 773fa170..8c0d92ea 100644 --- a/include/boost/config/compiler/gcc.hpp +++ b/include/boost/config/compiler/gcc.hpp @@ -28,12 +28,16 @@ # define BOOST_NO_OPERATORS_IN_NAMESPACE # endif +#ifndef __EXCEPTIONS +# define BOOST_NO_EXCEPTIONS +#endif + // // Threading support: Turn this on unconditionally here (except for -// MinGW, where we can know for sure). It will get turned off again +// those platforms where we can know for sure). It will get turned off again // later if no threading API is detected. // -#if !defined(__MINGW32__) || defined(_MT) +#if !defined(__MINGW32__) && !defined(__CYGWIN__) && !defined(linux) && !defined(__linux) && !defined(__linux__) # define BOOST_HAS_THREADS #endif @@ -66,3 +70,4 @@ # warning "Unknown compiler version - please run the configure tests and report the results" # endif #endif +