From b406ae1b3e0ef7a9108eba3179e91476f928e990 Mon Sep 17 00:00:00 2001 From: Aleksey Gurtovoy Date: Thu, 8 May 2003 10:10:54 +0000 Subject: [PATCH] restore from the CVS crash [SVN r18358] --- include/boost/config/platform/win32.hpp | 9 +++++++-- include/boost/config/stdlib/stlport.hpp | 13 ++++++++----- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/include/boost/config/platform/win32.hpp b/include/boost/config/platform/win32.hpp index d156b99b..89e36ba8 100644 --- a/include/boost/config/platform/win32.hpp +++ b/include/boost/config/platform/win32.hpp @@ -13,15 +13,20 @@ # define BOOST_NO_SWPRINTF #endif -#ifndef BOOST_DISABLE_WIN32 // // Win32 will normally be using native Win32 threads, -// but there is a pthread library avaliable as an option: +// but there is a pthread library avaliable as an option, +// we used to disable this when BOOST_DISABLE_WIN32 was +// defined but no longer - this should allow some +// files to be compiled in strict mode - while maintaining +// a consistent setting of BOOST_HAS_THREADS across +// all translation units (needed for shared_ptr etc). // #ifndef BOOST_HAS_PTHREADS # define BOOST_HAS_WINTHREADS #endif +#ifndef BOOST_DISABLE_WIN32 // WEK: Added #define BOOST_HAS_FTIME diff --git a/include/boost/config/stdlib/stlport.hpp b/include/boost/config/stdlib/stlport.hpp index b40b5b39..c221cbe8 100644 --- a/include/boost/config/stdlib/stlport.hpp +++ b/include/boost/config/stdlib/stlport.hpp @@ -49,11 +49,14 @@ // If the streams are not native, and we have a "using ::x" compiler bug // then the io stream facets are not available in namespace std:: // -#if !defined(_STLP_OWN_IOSTREAMS) && defined(_STLP_USE_NAMESPACES) && defined(BOOST_NO_USING_TEMPLATE) && !defined(__BORLANDC__) -# define BOOST_NO_STD_LOCALE -#endif -#if !defined(__SGI_STL_OWN_IOSTREAMS) && defined(__STL_USE_NAMESPACES) && defined(BOOST_NO_USING_TEMPLATE) && !defined(__BORLANDC__) -# define BOOST_NO_STD_LOCALE +#ifdef _STLPORT_VERSION +# if !defined(_STLP_OWN_IOSTREAMS) && defined(_STLP_USE_NAMESPACES) && defined(BOOST_NO_USING_TEMPLATE) && !defined(__BORLANDC__) +# define BOOST_NO_STD_LOCALE +# endif +#else +# if !defined(__SGI_STL_OWN_IOSTREAMS) && defined(__STL_USE_NAMESPACES) && defined(BOOST_NO_USING_TEMPLATE) && !defined(__BORLANDC__) +# define BOOST_NO_STD_LOCALE +# endif #endif //