Chris@16
|
1 // (C) Copyright John Maddock 2001 - 2003.
|
Chris@16
|
2 // (C) Copyright Darin Adler 2001.
|
Chris@16
|
3 // (C) Copyright Jens Maurer 2001 - 2003.
|
Chris@16
|
4 // Use, modification and distribution are subject to the
|
Chris@16
|
5 // Boost Software License, Version 1.0. (See accompanying file
|
Chris@16
|
6 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
Chris@16
|
7
|
Chris@16
|
8 // See http://www.boost.org for most recent version.
|
Chris@16
|
9
|
Chris@16
|
10 // generic SGI STL:
|
Chris@16
|
11
|
Chris@16
|
12 #if !defined(__STL_CONFIG_H)
|
Chris@16
|
13 # include <boost/config/no_tr1/utility.hpp>
|
Chris@16
|
14 # if !defined(__STL_CONFIG_H)
|
Chris@16
|
15 # error "This is not the SGI STL!"
|
Chris@16
|
16 # endif
|
Chris@16
|
17 #endif
|
Chris@16
|
18
|
Chris@16
|
19 //
|
Chris@16
|
20 // No std::iterator traits without partial specialisation:
|
Chris@16
|
21 //
|
Chris@16
|
22 #if !defined(__STL_CLASS_PARTIAL_SPECIALIZATION)
|
Chris@16
|
23 # define BOOST_NO_STD_ITERATOR_TRAITS
|
Chris@16
|
24 #endif
|
Chris@16
|
25
|
Chris@16
|
26 //
|
Chris@16
|
27 // No std::stringstream with gcc < 3
|
Chris@16
|
28 //
|
Chris@16
|
29 #if defined(__GNUC__) && (__GNUC__ < 3) && \
|
Chris@16
|
30 ((__GNUC_MINOR__ < 95) || (__GNUC_MINOR__ == 96)) && \
|
Chris@16
|
31 !defined(__STL_USE_NEW_IOSTREAMS) || \
|
Chris@16
|
32 defined(__APPLE_CC__)
|
Chris@16
|
33 // Note that we only set this for GNU C++ prior to 2.95 since the
|
Chris@16
|
34 // latest patches for that release do contain a minimal <sstream>
|
Chris@16
|
35 // If you are running a 2.95 release prior to 2.95.3 then this will need
|
Chris@16
|
36 // setting, but there is no way to detect that automatically (other
|
Chris@16
|
37 // than by running the configure script).
|
Chris@16
|
38 // Also, the unofficial GNU C++ 2.96 included in RedHat 7.1 doesn't
|
Chris@16
|
39 // have <sstream>.
|
Chris@16
|
40 # define BOOST_NO_STRINGSTREAM
|
Chris@16
|
41 #endif
|
Chris@16
|
42
|
Chris@16
|
43 // Apple doesn't seem to reliably defined a *unix* macro
|
Chris@16
|
44 #if !defined(CYGWIN) && ( defined(__unix__) \
|
Chris@16
|
45 || defined(__unix) \
|
Chris@16
|
46 || defined(unix) \
|
Chris@16
|
47 || defined(__APPLE__) \
|
Chris@16
|
48 || defined(__APPLE) \
|
Chris@16
|
49 || defined(APPLE))
|
Chris@16
|
50 # include <unistd.h>
|
Chris@16
|
51 #endif
|
Chris@16
|
52
|
Chris@16
|
53
|
Chris@16
|
54 //
|
Chris@16
|
55 // Assume no std::locale without own iostreams (this may be an
|
Chris@16
|
56 // incorrect assumption in some cases):
|
Chris@16
|
57 //
|
Chris@16
|
58 #if !defined(__SGI_STL_OWN_IOSTREAMS) && !defined(__STL_USE_NEW_IOSTREAMS)
|
Chris@16
|
59 # define BOOST_NO_STD_LOCALE
|
Chris@16
|
60 #endif
|
Chris@16
|
61
|
Chris@16
|
62 //
|
Chris@16
|
63 // Original native SGI streams have non-standard std::messages facet:
|
Chris@16
|
64 //
|
Chris@16
|
65 #if defined(__sgi) && (_COMPILER_VERSION <= 650) && !defined(__SGI_STL_OWN_IOSTREAMS)
|
Chris@16
|
66 # define BOOST_NO_STD_LOCALE
|
Chris@16
|
67 #endif
|
Chris@16
|
68
|
Chris@16
|
69 //
|
Chris@16
|
70 // SGI's new iostreams have missing "const" in messages<>::open
|
Chris@16
|
71 //
|
Chris@16
|
72 #if defined(__sgi) && (_COMPILER_VERSION <= 740) && defined(__STL_USE_NEW_IOSTREAMS)
|
Chris@16
|
73 # define BOOST_NO_STD_MESSAGES
|
Chris@16
|
74 #endif
|
Chris@16
|
75
|
Chris@16
|
76 //
|
Chris@16
|
77 // No template iterator constructors, or std::allocator
|
Chris@16
|
78 // without member templates:
|
Chris@16
|
79 //
|
Chris@16
|
80 #if !defined(__STL_MEMBER_TEMPLATES)
|
Chris@16
|
81 # define BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS
|
Chris@16
|
82 # define BOOST_NO_STD_ALLOCATOR
|
Chris@16
|
83 #endif
|
Chris@16
|
84
|
Chris@16
|
85 //
|
Chris@16
|
86 // We always have SGI style hash_set, hash_map, and slist:
|
Chris@16
|
87 //
|
Chris@16
|
88 #define BOOST_HAS_HASH
|
Chris@16
|
89 #define BOOST_HAS_SLIST
|
Chris@16
|
90
|
Chris@16
|
91 //
|
Chris@16
|
92 // If this is GNU libstdc++2, then no <limits> and no std::wstring:
|
Chris@16
|
93 //
|
Chris@16
|
94 #if (defined(__GNUC__) && (__GNUC__ < 3))
|
Chris@16
|
95 # include <string>
|
Chris@16
|
96 # if defined(__BASTRING__)
|
Chris@16
|
97 # define BOOST_NO_LIMITS
|
Chris@16
|
98 // Note: <boost/limits.hpp> will provide compile-time constants
|
Chris@16
|
99 # undef BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS
|
Chris@16
|
100 # define BOOST_NO_STD_WSTRING
|
Chris@16
|
101 # endif
|
Chris@16
|
102 #endif
|
Chris@16
|
103
|
Chris@16
|
104 //
|
Chris@16
|
105 // There is no standard iterator unless we have namespace support:
|
Chris@16
|
106 //
|
Chris@16
|
107 #if !defined(__STL_USE_NAMESPACES)
|
Chris@16
|
108 # define BOOST_NO_STD_ITERATOR
|
Chris@16
|
109 #endif
|
Chris@16
|
110
|
Chris@16
|
111 //
|
Chris@16
|
112 // Intrinsic type_traits support.
|
Chris@16
|
113 // The SGI STL has it's own __type_traits class, which
|
Chris@16
|
114 // has intrinsic compiler support with SGI's compilers.
|
Chris@16
|
115 // Whatever map SGI style type traits to boost equivalents:
|
Chris@16
|
116 //
|
Chris@16
|
117 #define BOOST_HAS_SGI_TYPE_TRAITS
|
Chris@16
|
118
|
Chris@16
|
119 // C++0x headers not yet implemented
|
Chris@16
|
120 //
|
Chris@16
|
121 # define BOOST_NO_CXX11_HDR_ARRAY
|
Chris@16
|
122 # define BOOST_NO_CXX11_HDR_CHRONO
|
Chris@16
|
123 # define BOOST_NO_CXX11_HDR_CODECVT
|
Chris@16
|
124 # define BOOST_NO_CXX11_HDR_CONDITION_VARIABLE
|
Chris@16
|
125 # define BOOST_NO_CXX11_HDR_FORWARD_LIST
|
Chris@16
|
126 # define BOOST_NO_CXX11_HDR_FUTURE
|
Chris@16
|
127 # define BOOST_NO_CXX11_HDR_INITIALIZER_LIST
|
Chris@16
|
128 # define BOOST_NO_CXX11_HDR_MUTEX
|
Chris@16
|
129 # define BOOST_NO_CXX11_HDR_RANDOM
|
Chris@16
|
130 # define BOOST_NO_CXX11_HDR_RATIO
|
Chris@16
|
131 # define BOOST_NO_CXX11_HDR_REGEX
|
Chris@16
|
132 # define BOOST_NO_CXX11_HDR_SYSTEM_ERROR
|
Chris@16
|
133 # define BOOST_NO_CXX11_HDR_THREAD
|
Chris@16
|
134 # define BOOST_NO_CXX11_HDR_TUPLE
|
Chris@16
|
135 # define BOOST_NO_CXX11_HDR_TYPE_TRAITS
|
Chris@16
|
136 # define BOOST_NO_CXX11_HDR_TYPEINDEX
|
Chris@16
|
137 # define BOOST_NO_CXX11_HDR_UNORDERED_MAP
|
Chris@16
|
138 # define BOOST_NO_CXX11_HDR_UNORDERED_SET
|
Chris@16
|
139 # define BOOST_NO_CXX11_NUMERIC_LIMITS
|
Chris@16
|
140 # define BOOST_NO_CXX11_ALLOCATOR
|
Chris@16
|
141 # define BOOST_NO_CXX11_ATOMIC_SMART_PTR
|
Chris@16
|
142 # define BOOST_NO_CXX11_SMART_PTR
|
Chris@16
|
143 # define BOOST_NO_CXX11_HDR_FUNCTIONAL
|
Chris@101
|
144 # define BOOST_NO_CXX11_HDR_ATOMIC
|
Chris@101
|
145 # define BOOST_NO_CXX11_STD_ALIGN
|
Chris@101
|
146 # define BOOST_NO_CXX11_ADDRESSOF
|
Chris@16
|
147
|
Chris@16
|
148 #define BOOST_STDLIB "SGI standard library"
|
Chris@16
|
149
|
Chris@16
|
150
|
Chris@16
|
151
|