Chris@16: // (C) Copyright John Maddock 2001 - 2003. Chris@16: // (C) Copyright Darin Adler 2001. Chris@16: // (C) Copyright Jens Maurer 2001 - 2003. Chris@16: // Use, modification and distribution are subject to the Chris@16: // Boost Software License, Version 1.0. (See accompanying file Chris@16: // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) Chris@16: Chris@16: // See http://www.boost.org for most recent version. Chris@16: Chris@16: // generic SGI STL: Chris@16: Chris@16: #if !defined(__STL_CONFIG_H) Chris@16: # include Chris@16: # if !defined(__STL_CONFIG_H) Chris@16: # error "This is not the SGI STL!" Chris@16: # endif Chris@16: #endif Chris@16: Chris@16: // Chris@16: // No std::iterator traits without partial specialisation: Chris@16: // Chris@16: #if !defined(__STL_CLASS_PARTIAL_SPECIALIZATION) Chris@16: # define BOOST_NO_STD_ITERATOR_TRAITS Chris@16: #endif Chris@16: Chris@16: // Chris@16: // No std::stringstream with gcc < 3 Chris@16: // Chris@16: #if defined(__GNUC__) && (__GNUC__ < 3) && \ Chris@16: ((__GNUC_MINOR__ < 95) || (__GNUC_MINOR__ == 96)) && \ Chris@16: !defined(__STL_USE_NEW_IOSTREAMS) || \ Chris@16: defined(__APPLE_CC__) Chris@16: // Note that we only set this for GNU C++ prior to 2.95 since the Chris@16: // latest patches for that release do contain a minimal Chris@16: // If you are running a 2.95 release prior to 2.95.3 then this will need Chris@16: // setting, but there is no way to detect that automatically (other Chris@16: // than by running the configure script). Chris@16: // Also, the unofficial GNU C++ 2.96 included in RedHat 7.1 doesn't Chris@16: // have . Chris@16: # define BOOST_NO_STRINGSTREAM Chris@16: #endif Chris@16: Chris@16: // Apple doesn't seem to reliably defined a *unix* macro Chris@16: #if !defined(CYGWIN) && ( defined(__unix__) \ Chris@16: || defined(__unix) \ Chris@16: || defined(unix) \ Chris@16: || defined(__APPLE__) \ Chris@16: || defined(__APPLE) \ Chris@16: || defined(APPLE)) Chris@16: # include Chris@16: #endif Chris@16: Chris@16: Chris@16: // Chris@16: // Assume no std::locale without own iostreams (this may be an Chris@16: // incorrect assumption in some cases): Chris@16: // Chris@16: #if !defined(__SGI_STL_OWN_IOSTREAMS) && !defined(__STL_USE_NEW_IOSTREAMS) Chris@16: # define BOOST_NO_STD_LOCALE Chris@16: #endif Chris@16: Chris@16: // Chris@16: // Original native SGI streams have non-standard std::messages facet: Chris@16: // Chris@16: #if defined(__sgi) && (_COMPILER_VERSION <= 650) && !defined(__SGI_STL_OWN_IOSTREAMS) Chris@16: # define BOOST_NO_STD_LOCALE Chris@16: #endif Chris@16: Chris@16: // Chris@16: // SGI's new iostreams have missing "const" in messages<>::open Chris@16: // Chris@16: #if defined(__sgi) && (_COMPILER_VERSION <= 740) && defined(__STL_USE_NEW_IOSTREAMS) Chris@16: # define BOOST_NO_STD_MESSAGES Chris@16: #endif Chris@16: Chris@16: // Chris@16: // No template iterator constructors, or std::allocator Chris@16: // without member templates: Chris@16: // Chris@16: #if !defined(__STL_MEMBER_TEMPLATES) Chris@16: # define BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS Chris@16: # define BOOST_NO_STD_ALLOCATOR Chris@16: #endif Chris@16: Chris@16: // Chris@16: // We always have SGI style hash_set, hash_map, and slist: Chris@16: // Chris@16: #define BOOST_HAS_HASH Chris@16: #define BOOST_HAS_SLIST Chris@16: Chris@16: // Chris@16: // If this is GNU libstdc++2, then no and no std::wstring: Chris@16: // Chris@16: #if (defined(__GNUC__) && (__GNUC__ < 3)) Chris@16: # include Chris@16: # if defined(__BASTRING__) Chris@16: # define BOOST_NO_LIMITS Chris@16: // Note: will provide compile-time constants Chris@16: # undef BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS Chris@16: # define BOOST_NO_STD_WSTRING Chris@16: # endif Chris@16: #endif Chris@16: Chris@16: // Chris@16: // There is no standard iterator unless we have namespace support: Chris@16: // Chris@16: #if !defined(__STL_USE_NAMESPACES) Chris@16: # define BOOST_NO_STD_ITERATOR Chris@16: #endif Chris@16: Chris@16: // Chris@16: // Intrinsic type_traits support. Chris@16: // The SGI STL has it's own __type_traits class, which Chris@16: // has intrinsic compiler support with SGI's compilers. Chris@16: // Whatever map SGI style type traits to boost equivalents: Chris@16: // Chris@16: #define BOOST_HAS_SGI_TYPE_TRAITS Chris@16: Chris@16: // C++0x headers not yet implemented Chris@16: // Chris@16: # define BOOST_NO_CXX11_HDR_ARRAY Chris@16: # define BOOST_NO_CXX11_HDR_CHRONO Chris@16: # define BOOST_NO_CXX11_HDR_CODECVT Chris@16: # define BOOST_NO_CXX11_HDR_CONDITION_VARIABLE Chris@16: # define BOOST_NO_CXX11_HDR_FORWARD_LIST Chris@16: # define BOOST_NO_CXX11_HDR_FUTURE Chris@16: # define BOOST_NO_CXX11_HDR_INITIALIZER_LIST Chris@16: # define BOOST_NO_CXX11_HDR_MUTEX Chris@16: # define BOOST_NO_CXX11_HDR_RANDOM Chris@16: # define BOOST_NO_CXX11_HDR_RATIO Chris@16: # define BOOST_NO_CXX11_HDR_REGEX Chris@16: # define BOOST_NO_CXX11_HDR_SYSTEM_ERROR Chris@16: # define BOOST_NO_CXX11_HDR_THREAD Chris@16: # define BOOST_NO_CXX11_HDR_TUPLE Chris@16: # define BOOST_NO_CXX11_HDR_TYPE_TRAITS Chris@16: # define BOOST_NO_CXX11_HDR_TYPEINDEX Chris@16: # define BOOST_NO_CXX11_HDR_UNORDERED_MAP Chris@16: # define BOOST_NO_CXX11_HDR_UNORDERED_SET Chris@16: # define BOOST_NO_CXX11_NUMERIC_LIMITS Chris@16: # define BOOST_NO_CXX11_ALLOCATOR Chris@16: # define BOOST_NO_CXX11_ATOMIC_SMART_PTR Chris@16: # define BOOST_NO_CXX11_SMART_PTR Chris@16: # define BOOST_NO_CXX11_HDR_FUNCTIONAL Chris@101: # define BOOST_NO_CXX11_HDR_ATOMIC Chris@101: # define BOOST_NO_CXX11_STD_ALIGN Chris@101: # define BOOST_NO_CXX11_ADDRESSOF Chris@16: Chris@16: #define BOOST_STDLIB "SGI standard library" Chris@16: Chris@16: Chris@16: