blob: be14f4e93fa68a0cd1d160cb7794d089a589a907 [file] [log] [blame]
Jeff Thompsonf7d49942013-08-01 16:47:40 -07001// (C) Copyright John Maddock 2001 - 2003.
2// (C) Copyright Darin Adler 2001.
3// (C) Copyright Jens Maurer 2001 - 2003.
4// Use, modification and distribution are subject to the
5// Boost Software License, Version 1.0. (See accompanying file
6// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7
8// See http://www.boost.org for most recent version.
9
10// generic SGI STL:
11
12#if !defined(__STL_CONFIG_H)
Jeff Thompson2277ce52013-08-01 17:34:11 -070013# include <ndnboost/config/no_tr1/utility.hpp>
Jeff Thompsonf7d49942013-08-01 16:47:40 -070014# if !defined(__STL_CONFIG_H)
15# error "This is not the SGI STL!"
16# endif
17#endif
18
19//
20// No std::iterator traits without partial specialisation:
21//
22#if !defined(__STL_CLASS_PARTIAL_SPECIALIZATION)
Jeff Thompson3d613fd2013-10-15 15:39:04 -070023# define NDNBOOST_NO_STD_ITERATOR_TRAITS
Jeff Thompsonf7d49942013-08-01 16:47:40 -070024#endif
25
26//
27// No std::stringstream with gcc < 3
28//
29#if defined(__GNUC__) && (__GNUC__ < 3) && \
30 ((__GNUC_MINOR__ < 95) || (__GNUC_MINOR__ == 96)) && \
31 !defined(__STL_USE_NEW_IOSTREAMS) || \
32 defined(__APPLE_CC__)
33 // Note that we only set this for GNU C++ prior to 2.95 since the
34 // latest patches for that release do contain a minimal <sstream>
35 // If you are running a 2.95 release prior to 2.95.3 then this will need
36 // setting, but there is no way to detect that automatically (other
37 // than by running the configure script).
38 // Also, the unofficial GNU C++ 2.96 included in RedHat 7.1 doesn't
39 // have <sstream>.
Jeff Thompson3d613fd2013-10-15 15:39:04 -070040# define NDNBOOST_NO_STRINGSTREAM
Jeff Thompsonf7d49942013-08-01 16:47:40 -070041#endif
42
43// Apple doesn't seem to reliably defined a *unix* macro
44#if !defined(CYGWIN) && ( defined(__unix__) \
45 || defined(__unix) \
46 || defined(unix) \
47 || defined(__APPLE__) \
48 || defined(__APPLE) \
49 || defined(APPLE))
50# include <unistd.h>
51#endif
52
53
54//
55// Assume no std::locale without own iostreams (this may be an
56// incorrect assumption in some cases):
57//
58#if !defined(__SGI_STL_OWN_IOSTREAMS) && !defined(__STL_USE_NEW_IOSTREAMS)
Jeff Thompson3d613fd2013-10-15 15:39:04 -070059# define NDNBOOST_NO_STD_LOCALE
Jeff Thompsonf7d49942013-08-01 16:47:40 -070060#endif
61
62//
63// Original native SGI streams have non-standard std::messages facet:
64//
65#if defined(__sgi) && (_COMPILER_VERSION <= 650) && !defined(__SGI_STL_OWN_IOSTREAMS)
Jeff Thompson3d613fd2013-10-15 15:39:04 -070066# define NDNBOOST_NO_STD_LOCALE
Jeff Thompsonf7d49942013-08-01 16:47:40 -070067#endif
68
69//
70// SGI's new iostreams have missing "const" in messages<>::open
71//
72#if defined(__sgi) && (_COMPILER_VERSION <= 740) && defined(__STL_USE_NEW_IOSTREAMS)
Jeff Thompson3d613fd2013-10-15 15:39:04 -070073# define NDNBOOST_NO_STD_MESSAGES
Jeff Thompsonf7d49942013-08-01 16:47:40 -070074#endif
75
76//
77// No template iterator constructors, or std::allocator
78// without member templates:
79//
80#if !defined(__STL_MEMBER_TEMPLATES)
Jeff Thompson3d613fd2013-10-15 15:39:04 -070081# define NDNBOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS
82# define NDNBOOST_NO_STD_ALLOCATOR
Jeff Thompsonf7d49942013-08-01 16:47:40 -070083#endif
84
85//
86// We always have SGI style hash_set, hash_map, and slist:
87//
Jeff Thompson3d613fd2013-10-15 15:39:04 -070088#define NDNBOOST_HAS_HASH
89#define NDNBOOST_HAS_SLIST
Jeff Thompsonf7d49942013-08-01 16:47:40 -070090
91//
92// If this is GNU libstdc++2, then no <limits> and no std::wstring:
93//
94#if (defined(__GNUC__) && (__GNUC__ < 3))
95# include <string>
96# if defined(__BASTRING__)
Jeff Thompson3d613fd2013-10-15 15:39:04 -070097# define NDNBOOST_NO_LIMITS
Jeff Thompson2277ce52013-08-01 17:34:11 -070098// Note: <ndnboost/limits.hpp> will provide compile-time constants
Jeff Thompson3d613fd2013-10-15 15:39:04 -070099# undef NDNBOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS
100# define NDNBOOST_NO_STD_WSTRING
Jeff Thompsonf7d49942013-08-01 16:47:40 -0700101# endif
102#endif
103
104//
105// There is no standard iterator unless we have namespace support:
106//
107#if !defined(__STL_USE_NAMESPACES)
Jeff Thompson3d613fd2013-10-15 15:39:04 -0700108# define NDNBOOST_NO_STD_ITERATOR
Jeff Thompsonf7d49942013-08-01 16:47:40 -0700109#endif
110
111//
112// Intrinsic type_traits support.
113// The SGI STL has it's own __type_traits class, which
114// has intrinsic compiler support with SGI's compilers.
115// Whatever map SGI style type traits to boost equivalents:
116//
Jeff Thompson3d613fd2013-10-15 15:39:04 -0700117#define NDNBOOST_HAS_SGI_TYPE_TRAITS
Jeff Thompsonf7d49942013-08-01 16:47:40 -0700118
119// C++0x headers not yet implemented
120//
Jeff Thompson3d613fd2013-10-15 15:39:04 -0700121# define NDNBOOST_NO_CXX11_HDR_ARRAY
122# define NDNBOOST_NO_CXX11_HDR_CHRONO
123# define NDNBOOST_NO_CXX11_HDR_CODECVT
124# define NDNBOOST_NO_CXX11_HDR_CONDITION_VARIABLE
125# define NDNBOOST_NO_CXX11_HDR_FORWARD_LIST
126# define NDNBOOST_NO_CXX11_HDR_FUTURE
127# define NDNBOOST_NO_CXX11_HDR_INITIALIZER_LIST
128# define NDNBOOST_NO_CXX11_HDR_MUTEX
129# define NDNBOOST_NO_CXX11_HDR_RANDOM
130# define NDNBOOST_NO_CXX11_HDR_RATIO
131# define NDNBOOST_NO_CXX11_HDR_REGEX
132# define NDNBOOST_NO_CXX11_HDR_SYSTEM_ERROR
133# define NDNBOOST_NO_CXX11_HDR_THREAD
134# define NDNBOOST_NO_CXX11_HDR_TUPLE
135# define NDNBOOST_NO_CXX11_HDR_TYPE_TRAITS
136# define NDNBOOST_NO_CXX11_HDR_TYPEINDEX
137# define NDNBOOST_NO_CXX11_HDR_UNORDERED_MAP
138# define NDNBOOST_NO_CXX11_HDR_UNORDERED_SET
139# define NDNBOOST_NO_CXX11_NUMERIC_LIMITS
140# define NDNBOOST_NO_CXX11_ALLOCATOR
141# define NDNBOOST_NO_CXX11_ATOMIC_SMART_PTR
142# define NDNBOOST_NO_CXX11_SMART_PTR
143# define NDNBOOST_NO_CXX11_HDR_FUNCTIONAL
Jeff Thompsonf7d49942013-08-01 16:47:40 -0700144
Jeff Thompson3d613fd2013-10-15 15:39:04 -0700145#define NDNBOOST_STDLIB "SGI standard library"
Jeff Thompsonf7d49942013-08-01 16:47:40 -0700146
147
148