blob: be14f4e93fa68a0cd1d160cb7794d089a589a907 [file] [log] [blame]
// (C) Copyright John Maddock 2001 - 2003.
// (C) Copyright Darin Adler 2001.
// (C) Copyright Jens Maurer 2001 - 2003.
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
// See http://www.boost.org for most recent version.
// generic SGI STL:
#if !defined(__STL_CONFIG_H)
# include <ndnboost/config/no_tr1/utility.hpp>
# if !defined(__STL_CONFIG_H)
# error "This is not the SGI STL!"
# endif
#endif
//
// No std::iterator traits without partial specialisation:
//
#if !defined(__STL_CLASS_PARTIAL_SPECIALIZATION)
# define NDNBOOST_NO_STD_ITERATOR_TRAITS
#endif
//
// No std::stringstream with gcc < 3
//
#if defined(__GNUC__) && (__GNUC__ < 3) && \
((__GNUC_MINOR__ < 95) || (__GNUC_MINOR__ == 96)) && \
!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 <sstream>
// If you are running a 2.95 release prior to 2.95.3 then this will need
// setting, but there is no way to detect that automatically (other
// than by running the configure script).
// Also, the unofficial GNU C++ 2.96 included in RedHat 7.1 doesn't
// have <sstream>.
# define NDNBOOST_NO_STRINGSTREAM
#endif
// Apple doesn't seem to reliably defined a *unix* macro
#if !defined(CYGWIN) && ( defined(__unix__) \
|| defined(__unix) \
|| defined(unix) \
|| defined(__APPLE__) \
|| defined(__APPLE) \
|| defined(APPLE))
# include <unistd.h>
#endif
//
// Assume no std::locale without own iostreams (this may be an
// incorrect assumption in some cases):
//
#if !defined(__SGI_STL_OWN_IOSTREAMS) && !defined(__STL_USE_NEW_IOSTREAMS)
# define NDNBOOST_NO_STD_LOCALE
#endif
//
// Original native SGI streams have non-standard std::messages facet:
//
#if defined(__sgi) && (_COMPILER_VERSION <= 650) && !defined(__SGI_STL_OWN_IOSTREAMS)
# define NDNBOOST_NO_STD_LOCALE
#endif
//
// SGI's new iostreams have missing "const" in messages<>::open
//
#if defined(__sgi) && (_COMPILER_VERSION <= 740) && defined(__STL_USE_NEW_IOSTREAMS)
# define NDNBOOST_NO_STD_MESSAGES
#endif
//
// No template iterator constructors, or std::allocator
// without member templates:
//
#if !defined(__STL_MEMBER_TEMPLATES)
# define NDNBOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS
# define NDNBOOST_NO_STD_ALLOCATOR
#endif
//
// We always have SGI style hash_set, hash_map, and slist:
//
#define NDNBOOST_HAS_HASH
#define NDNBOOST_HAS_SLIST
//
// If this is GNU libstdc++2, then no <limits> and no std::wstring:
//
#if (defined(__GNUC__) && (__GNUC__ < 3))
# include <string>
# if defined(__BASTRING__)
# define NDNBOOST_NO_LIMITS
// Note: <ndnboost/limits.hpp> will provide compile-time constants
# undef NDNBOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS
# define NDNBOOST_NO_STD_WSTRING
# endif
#endif
//
// There is no standard iterator unless we have namespace support:
//
#if !defined(__STL_USE_NAMESPACES)
# define NDNBOOST_NO_STD_ITERATOR
#endif
//
// Intrinsic type_traits support.
// The SGI STL has it's own __type_traits class, which
// has intrinsic compiler support with SGI's compilers.
// Whatever map SGI style type traits to boost equivalents:
//
#define NDNBOOST_HAS_SGI_TYPE_TRAITS
// C++0x headers not yet implemented
//
# define NDNBOOST_NO_CXX11_HDR_ARRAY
# define NDNBOOST_NO_CXX11_HDR_CHRONO
# define NDNBOOST_NO_CXX11_HDR_CODECVT
# define NDNBOOST_NO_CXX11_HDR_CONDITION_VARIABLE
# define NDNBOOST_NO_CXX11_HDR_FORWARD_LIST
# define NDNBOOST_NO_CXX11_HDR_FUTURE
# define NDNBOOST_NO_CXX11_HDR_INITIALIZER_LIST
# define NDNBOOST_NO_CXX11_HDR_MUTEX
# define NDNBOOST_NO_CXX11_HDR_RANDOM
# define NDNBOOST_NO_CXX11_HDR_RATIO
# define NDNBOOST_NO_CXX11_HDR_REGEX
# define NDNBOOST_NO_CXX11_HDR_SYSTEM_ERROR
# define NDNBOOST_NO_CXX11_HDR_THREAD
# define NDNBOOST_NO_CXX11_HDR_TUPLE
# define NDNBOOST_NO_CXX11_HDR_TYPE_TRAITS
# define NDNBOOST_NO_CXX11_HDR_TYPEINDEX
# define NDNBOOST_NO_CXX11_HDR_UNORDERED_MAP
# define NDNBOOST_NO_CXX11_HDR_UNORDERED_SET
# define NDNBOOST_NO_CXX11_NUMERIC_LIMITS
# define NDNBOOST_NO_CXX11_ALLOCATOR
# define NDNBOOST_NO_CXX11_ATOMIC_SMART_PTR
# define NDNBOOST_NO_CXX11_SMART_PTR
# define NDNBOOST_NO_CXX11_HDR_FUNCTIONAL
#define NDNBOOST_STDLIB "SGI standard library"