From 39d0339f389247a8d435e53b49d8c1d88f0b975c Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Thu, 30 Jan 2003 18:13:55 +0000 Subject: [PATCH] detect single-threaded builds for MinGW [SVN r17094] --- include/boost/config/compiler/gcc.hpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/include/boost/config/compiler/gcc.hpp b/include/boost/config/compiler/gcc.hpp index 674331be..773fa170 100644 --- a/include/boost/config/compiler/gcc.hpp +++ b/include/boost/config/compiler/gcc.hpp @@ -29,11 +29,13 @@ # endif // -// Threading support: -// Turn this on unconditionally here, it will get turned off again later -// if no threading API is detected. +// Threading support: Turn this on unconditionally here (except for +// MinGW, where we can know for sure). It will get turned off again +// later if no threading API is detected. // -#define BOOST_HAS_THREADS +#if !defined(__MINGW32__) || defined(_MT) +# define BOOST_HAS_THREADS +#endif // // gcc has "long long"