From 1e97d996086a35cfdb5cb6a1e83fdec405a03407 Mon Sep 17 00:00:00 2001 From: Darin Adler Date: Sat, 22 Sep 2001 15:45:54 +0000 Subject: [PATCH] BSD gcc compilers do have an intrinsic wchar_t. The problem is that they don't have wchar_t.h and wctype.h. We were confused because of a minor problem in the configuration tests. [SVN r11207] --- include/boost/config/compiler/gcc.hpp | 12 ------------ include/boost/config/stdlib/sgi.hpp | 15 ++++++++++----- 2 files changed, 10 insertions(+), 17 deletions(-) diff --git a/include/boost/config/compiler/gcc.hpp b/include/boost/config/compiler/gcc.hpp index 73d8bba6..586bd41b 100644 --- a/include/boost/config/compiler/gcc.hpp +++ b/include/boost/config/compiler/gcc.hpp @@ -28,14 +28,6 @@ # define BOOST_NO_OPERATORS_IN_NAMESPACE # endif -// -// define BOOST_NO_INTRINSIC_WCHAR_T for gcc platforms known not to -// have wchar_t as an intrinsic type: -// -#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) -# define BOOST_NO_INTRINSIC_WCHAR_T -#endif - // // Threading support: // Turn this on unconditionally here, it will get turned off again later @@ -60,7 +52,3 @@ # warning "Unknown compiler version - please run the configure tests and report the results" # endif #endif - - - - diff --git a/include/boost/config/stdlib/sgi.hpp b/include/boost/config/stdlib/sgi.hpp index 9a1934dc..0108fb34 100644 --- a/include/boost/config/stdlib/sgi.hpp +++ b/include/boost/config/stdlib/sgi.hpp @@ -24,7 +24,7 @@ // // No std::stringstream with gcc < 3 // -#if defined(__GNUC__) && (__GNUC__ < 3) && (__GNUC_MINOR__ < 95) && !defined(__STL_USE_NEW_IOSTREAMS) +#if defined(__GNUC__) && (__GNUC__ < 3) && (__GNUC_MINOR__ < 95) && !defined(__STL_USE_NEW_IOSTREAMS) || defined(__APPLE_CC__) // Note that we only set this for gnu C++ prior to 2.95 since the // latest patches for that release do contain a minimal // If you are running a 2.95 release prior to 2.95.3 then this will need @@ -74,8 +74,13 @@ # define BOOST_NO_STD_ITERATOR #endif +// +// Define BOOST_NO_CWCHAR and BOOST_NO_CWCTYPE for platforms known to +// have C libraries without or : +// +#if defined(__APPLE_CC__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) +# define BOOST_NO_CWCHAR +# define BOOST_NO_CWCTYPE +#endif + #define BOOST_STDLIB "SGI standard library" - - - -