From 96026e7152bfb1f5fe36bf675b84a30c1465de9d Mon Sep 17 00:00:00 2001 From: Darin Adler Date: Thu, 8 Nov 2001 16:17:28 +0000 Subject: [PATCH] Remove assumption that the compiler is always in multithreaded mode. Instead, figure out when the library is in multithreaded mode, by looking at _MWMT. [SVN r11631] --- include/boost/config/compiler/metrowerks.hpp | 2 -- include/boost/config/stdlib/msl.hpp | 4 ++++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/boost/config/compiler/metrowerks.hpp b/include/boost/config/compiler/metrowerks.hpp index 68821cd5..0bbb9f7b 100644 --- a/include/boost/config/compiler/metrowerks.hpp +++ b/include/boost/config/compiler/metrowerks.hpp @@ -26,8 +26,6 @@ # define BOOST_NO_INTRINSIC_WCHAR_T #endif -#define BOOST_HAS_THREADS - #define BOOST_COMPILER "Metrowerks CodeWarrior C++ version " BOOST_STRINGIZE(__MWERKS__) diff --git a/include/boost/config/stdlib/msl.hpp b/include/boost/config/stdlib/msl.hpp index 8434d2be..009e779b 100644 --- a/include/boost/config/stdlib/msl.hpp +++ b/include/boost/config/stdlib/msl.hpp @@ -34,6 +34,10 @@ # include #endif +#if _MWMT +# define BOOST_HAS_THREADS +#endif + #define BOOST_STDLIB "Metrowerks Standard Library version " BOOST_STRINGIZE(__MSL_CPP__)