From 3d33b40f9a1e52a052026b155882b0e401284944 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Thu, 26 Jan 2006 17:32:13 +0000 Subject: [PATCH] Gcc has hash_set and slist in non-standard location. [SVN r32422] --- test/boost_has_hash.ipp | 6 ++++++ test/boost_has_slist.ipp | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/test/boost_has_hash.ipp b/test/boost_has_hash.ipp index 5e0abd65..c9cfeff8 100644 --- a/test/boost_has_hash.ipp +++ b/test/boost_has_hash.ipp @@ -10,8 +10,14 @@ // DESCRIPTION: The C++ implementation provides the (SGI) hash_set // or hash_map classes. +#if defined(__GLIBCXX__) || (defined(__GLIBCPP__) && __GLIBCPP__>=20020514) // GCC >= 3.1.0 +# define BOOST_STD_EXTENSION_NAMESPACE __gnu_cxx +#include +#include +#else #include #include +#endif #ifndef BOOST_STD_EXTENSION_NAMESPACE #define BOOST_STD_EXTENSION_NAMESPACE std diff --git a/test/boost_has_slist.ipp b/test/boost_has_slist.ipp index ac16d5af..f3c37d4c 100644 --- a/test/boost_has_slist.ipp +++ b/test/boost_has_slist.ipp @@ -9,7 +9,12 @@ // TITLE: // DESCRIPTION: The C++ implementation provides the (SGI) slist class. +#if defined(__GLIBCXX__) || (defined(__GLIBCPP__) && __GLIBCPP__>=20020514) // GCC >= 3.1.0 +# define BOOST_STD_EXTENSION_NAMESPACE __gnu_cxx +#include +#else #include +#endif #ifndef BOOST_STD_EXTENSION_NAMESPACE #define BOOST_STD_EXTENSION_NAMESPACE std