From 3178938f98f5627fd800b392dc717ec596659847 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Wed, 8 Apr 2009 05:51:31 +0000 Subject: [PATCH] Detect gcc stdlib for gcc 4.0.1. For some reason the normal macros aren't defined for the standard library that comes with gcc 4.0.1 (although maybe just on BSDs?). So try to detect the library for that compiler. [SVN r52245] --- include/boost/detail/container_fwd.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/boost/detail/container_fwd.hpp b/include/boost/detail/container_fwd.hpp index b7e3a71..b8767fd 100644 --- a/include/boost/detail/container_fwd.hpp +++ b/include/boost/detail/container_fwd.hpp @@ -19,7 +19,8 @@ #define BOOST_HASH_CHAR_TRAITS char_traits #endif -#if (defined(__GLIBCXX__) && defined(_GLIBCXX_DEBUG)) \ +#if ((defined(__GLIBCPP__) || defined(__GLIBCXX__) || defined(_GLIBCXX_CSTDDEF)) \ + && defined(_GLIBCXX_DEBUG)) \ || BOOST_WORKAROUND(__BORLANDC__, > 0x551) \ || BOOST_WORKAROUND(__DMC__, BOOST_TESTED_AT(0x842)) \ || (defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION))