Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r52245 - in trunk: boost/detail libs/functional/hash/test
From: daniel_james_at_[hidden]
Date: 2009-04-08 01:51:32


Author: danieljames
Date: 2009-04-08 01:51:31 EDT (Wed, 08 Apr 2009)
New Revision: 52245
URL: http://svn.boost.org/trac/boost/changeset/52245

Log:
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.
Text files modified:
   trunk/boost/detail/container_fwd.hpp | 3 ++-
   trunk/libs/functional/hash/test/Jamfile.v2 | 2 ++
   2 files changed, 4 insertions(+), 1 deletions(-)

Modified: trunk/boost/detail/container_fwd.hpp
==============================================================================
--- trunk/boost/detail/container_fwd.hpp (original)
+++ trunk/boost/detail/container_fwd.hpp 2009-04-08 01:51:31 EDT (Wed, 08 Apr 2009)
@@ -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))

Modified: trunk/libs/functional/hash/test/Jamfile.v2
==============================================================================
--- trunk/libs/functional/hash/test/Jamfile.v2 (original)
+++ trunk/libs/functional/hash/test/Jamfile.v2 2009-04-08 01:51:31 EDT (Wed, 08 Apr 2009)
@@ -10,6 +10,8 @@
         <toolset>gcc:<define>_GLIBCXX_DEBUG
         <toolset>gcc:<cxxflags>-Wsign-promo
         #<toolset>gcc:<cxxflags>-Wextra
+ <toolset>darwin:<define>_GLIBCXX_DEBUG
+ <toolset>darwin:<cxxflags>-Wsign-promo
     ;
 
 test-suite functional/hash


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk