Chris@16
|
1 // (C) Copyright John Maddock 2001.
|
Chris@16
|
2 // (C) Copyright Darin Adler 2001.
|
Chris@16
|
3 // (C) Copyright Peter Dimov 2001.
|
Chris@16
|
4 // (C) Copyright David Abrahams 2001 - 2002.
|
Chris@16
|
5 // (C) Copyright Beman Dawes 2001 - 2003.
|
Chris@16
|
6 // (C) Copyright Stefan Slapeta 2004.
|
Chris@16
|
7 // Use, modification and distribution are subject to the
|
Chris@16
|
8 // Boost Software License, Version 1.0. (See accompanying file
|
Chris@16
|
9 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
Chris@16
|
10
|
Chris@16
|
11 // See http://www.boost.org for most recent version.
|
Chris@16
|
12
|
Chris@16
|
13 // Metrowerks C++ compiler setup:
|
Chris@16
|
14
|
Chris@16
|
15 // locale support is disabled when linking with the dynamic runtime
|
Chris@16
|
16 # ifdef _MSL_NO_LOCALE
|
Chris@16
|
17 # define BOOST_NO_STD_LOCALE
|
Chris@16
|
18 # endif
|
Chris@16
|
19
|
Chris@16
|
20 # if __MWERKS__ <= 0x2301 // 5.3
|
Chris@16
|
21 # define BOOST_NO_FUNCTION_TEMPLATE_ORDERING
|
Chris@16
|
22 # define BOOST_NO_POINTER_TO_MEMBER_CONST
|
Chris@16
|
23 # define BOOST_NO_DEPENDENT_TYPES_IN_TEMPLATE_VALUE_PARAMETERS
|
Chris@16
|
24 # define BOOST_NO_MEMBER_TEMPLATE_KEYWORD
|
Chris@16
|
25 # endif
|
Chris@16
|
26
|
Chris@16
|
27 # if __MWERKS__ <= 0x2401 // 6.2
|
Chris@16
|
28 //# define BOOST_NO_FUNCTION_TEMPLATE_ORDERING
|
Chris@16
|
29 # endif
|
Chris@16
|
30
|
Chris@16
|
31 # if(__MWERKS__ <= 0x2407) // 7.x
|
Chris@16
|
32 # define BOOST_NO_MEMBER_FUNCTION_SPECIALIZATIONS
|
Chris@16
|
33 # define BOOST_NO_UNREACHABLE_RETURN_DETECTION
|
Chris@16
|
34 # endif
|
Chris@16
|
35
|
Chris@16
|
36 # if(__MWERKS__ <= 0x3003) // 8.x
|
Chris@16
|
37 # define BOOST_NO_SFINAE
|
Chris@16
|
38 # endif
|
Chris@16
|
39
|
Chris@16
|
40 // the "|| !defined(BOOST_STRICT_CONFIG)" part should apply to the last
|
Chris@16
|
41 // tested version *only*:
|
Chris@16
|
42 # if(__MWERKS__ <= 0x3207) || !defined(BOOST_STRICT_CONFIG) // 9.6
|
Chris@16
|
43 # define BOOST_NO_MEMBER_TEMPLATE_FRIENDS
|
Chris@16
|
44 # define BOOST_NO_IS_ABSTRACT
|
Chris@16
|
45 # endif
|
Chris@16
|
46
|
Chris@16
|
47 #if !__option(wchar_type)
|
Chris@16
|
48 # define BOOST_NO_INTRINSIC_WCHAR_T
|
Chris@16
|
49 #endif
|
Chris@16
|
50
|
Chris@16
|
51 #if !__option(exceptions) && !defined(BOOST_NO_EXCEPTIONS)
|
Chris@16
|
52 # define BOOST_NO_EXCEPTIONS
|
Chris@16
|
53 #endif
|
Chris@16
|
54
|
Chris@16
|
55 #if (__INTEL__ && _WIN32) || (__POWERPC__ && macintosh)
|
Chris@16
|
56 # if __MWERKS__ == 0x3000
|
Chris@16
|
57 # define BOOST_COMPILER_VERSION 8.0
|
Chris@16
|
58 # elif __MWERKS__ == 0x3001
|
Chris@16
|
59 # define BOOST_COMPILER_VERSION 8.1
|
Chris@16
|
60 # elif __MWERKS__ == 0x3002
|
Chris@16
|
61 # define BOOST_COMPILER_VERSION 8.2
|
Chris@16
|
62 # elif __MWERKS__ == 0x3003
|
Chris@16
|
63 # define BOOST_COMPILER_VERSION 8.3
|
Chris@16
|
64 # elif __MWERKS__ == 0x3200
|
Chris@16
|
65 # define BOOST_COMPILER_VERSION 9.0
|
Chris@16
|
66 # elif __MWERKS__ == 0x3201
|
Chris@16
|
67 # define BOOST_COMPILER_VERSION 9.1
|
Chris@16
|
68 # elif __MWERKS__ == 0x3202
|
Chris@16
|
69 # define BOOST_COMPILER_VERSION 9.2
|
Chris@16
|
70 # elif __MWERKS__ == 0x3204
|
Chris@16
|
71 # define BOOST_COMPILER_VERSION 9.3
|
Chris@16
|
72 # elif __MWERKS__ == 0x3205
|
Chris@16
|
73 # define BOOST_COMPILER_VERSION 9.4
|
Chris@16
|
74 # elif __MWERKS__ == 0x3206
|
Chris@16
|
75 # define BOOST_COMPILER_VERSION 9.5
|
Chris@16
|
76 # elif __MWERKS__ == 0x3207
|
Chris@16
|
77 # define BOOST_COMPILER_VERSION 9.6
|
Chris@16
|
78 # else
|
Chris@16
|
79 # define BOOST_COMPILER_VERSION __MWERKS__
|
Chris@16
|
80 # endif
|
Chris@16
|
81 #else
|
Chris@16
|
82 # define BOOST_COMPILER_VERSION __MWERKS__
|
Chris@16
|
83 #endif
|
Chris@16
|
84
|
Chris@16
|
85 //
|
Chris@16
|
86 // C++0x features
|
Chris@16
|
87 //
|
Chris@16
|
88 // See boost\config\suffix.hpp for BOOST_NO_LONG_LONG
|
Chris@16
|
89 //
|
Chris@16
|
90 #if __MWERKS__ > 0x3206 && __option(rvalue_refs)
|
Chris@16
|
91 # define BOOST_HAS_RVALUE_REFS
|
Chris@16
|
92 #else
|
Chris@16
|
93 # define BOOST_NO_CXX11_RVALUE_REFERENCES
|
Chris@16
|
94 #endif
|
Chris@16
|
95 #define BOOST_NO_CXX11_AUTO_DECLARATIONS
|
Chris@16
|
96 #define BOOST_NO_CXX11_AUTO_MULTIDECLARATIONS
|
Chris@16
|
97 #define BOOST_NO_CXX11_CHAR16_T
|
Chris@16
|
98 #define BOOST_NO_CXX11_CHAR32_T
|
Chris@16
|
99 #define BOOST_NO_CXX11_CONSTEXPR
|
Chris@16
|
100 #define BOOST_NO_CXX11_DECLTYPE
|
Chris@16
|
101 #define BOOST_NO_CXX11_DECLTYPE_N3276
|
Chris@16
|
102 #define BOOST_NO_CXX11_DEFAULTED_FUNCTIONS
|
Chris@16
|
103 #define BOOST_NO_CXX11_DELETED_FUNCTIONS
|
Chris@16
|
104 #define BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS
|
Chris@16
|
105 #define BOOST_NO_CXX11_EXTERN_TEMPLATE
|
Chris@16
|
106 #define BOOST_NO_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGS
|
Chris@16
|
107 #define BOOST_NO_CXX11_HDR_INITIALIZER_LIST
|
Chris@16
|
108 #define BOOST_NO_CXX11_LAMBDAS
|
Chris@16
|
109 #define BOOST_NO_CXX11_LOCAL_CLASS_TEMPLATE_PARAMETERS
|
Chris@16
|
110 #define BOOST_NO_CXX11_NOEXCEPT
|
Chris@16
|
111 #define BOOST_NO_CXX11_NULLPTR
|
Chris@16
|
112 #define BOOST_NO_CXX11_RANGE_BASED_FOR
|
Chris@16
|
113 #define BOOST_NO_CXX11_RAW_LITERALS
|
Chris@16
|
114 #define BOOST_NO_CXX11_SCOPED_ENUMS
|
Chris@16
|
115 #define BOOST_NO_SFINAE_EXPR
|
Chris@16
|
116 #define BOOST_NO_CXX11_STATIC_ASSERT
|
Chris@16
|
117 #define BOOST_NO_CXX11_TEMPLATE_ALIASES
|
Chris@16
|
118 #define BOOST_NO_CXX11_UNICODE_LITERALS
|
Chris@16
|
119 #define BOOST_NO_CXX11_VARIADIC_TEMPLATES
|
Chris@16
|
120 #define BOOST_NO_CXX11_VARIADIC_MACROS
|
Chris@16
|
121 #define BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX
|
Chris@16
|
122 #define BOOST_NO_CXX11_USER_DEFINED_LITERALS
|
Chris@16
|
123 #define BOOST_NO_CXX11_ALIGNAS
|
Chris@16
|
124 #define BOOST_NO_CXX11_TRAILING_RESULT_TYPES
|
Chris@16
|
125 #define BOOST_NO_CXX11_INLINE_NAMESPACES
|
Chris@101
|
126 #define BOOST_NO_CXX11_REF_QUALIFIERS
|
Chris@101
|
127 #define BOOST_NO_CXX11_FINAL
|
Chris@101
|
128
|
Chris@101
|
129 // C++ 14:
|
Chris@101
|
130 #if !defined(__cpp_aggregate_nsdmi) || (__cpp_aggregate_nsdmi < 201304)
|
Chris@101
|
131 # define BOOST_NO_CXX14_AGGREGATE_NSDMI
|
Chris@101
|
132 #endif
|
Chris@101
|
133 #if !defined(__cpp_binary_literals) || (__cpp_binary_literals < 201304)
|
Chris@101
|
134 # define BOOST_NO_CXX14_BINARY_LITERALS
|
Chris@101
|
135 #endif
|
Chris@101
|
136 #if !defined(__cpp_constexpr) || (__cpp_constexpr < 201304)
|
Chris@101
|
137 # define BOOST_NO_CXX14_CONSTEXPR
|
Chris@101
|
138 #endif
|
Chris@101
|
139 #if !defined(__cpp_decltype_auto) || (__cpp_decltype_auto < 201304)
|
Chris@101
|
140 # define BOOST_NO_CXX14_DECLTYPE_AUTO
|
Chris@101
|
141 #endif
|
Chris@101
|
142 #if (__cplusplus < 201304) // There's no SD6 check for this....
|
Chris@101
|
143 # define BOOST_NO_CXX14_DIGIT_SEPARATORS
|
Chris@101
|
144 #endif
|
Chris@101
|
145 #if !defined(__cpp_generic_lambdas) || (__cpp_generic_lambdas < 201304)
|
Chris@101
|
146 # define BOOST_NO_CXX14_GENERIC_LAMBDAS
|
Chris@101
|
147 #endif
|
Chris@101
|
148 #if !defined(__cpp_init_captures) || (__cpp_init_captures < 201304)
|
Chris@101
|
149 # define BOOST_NO_CXX14_INITIALIZED_LAMBDA_CAPTURES
|
Chris@101
|
150 #endif
|
Chris@101
|
151 #if !defined(__cpp_return_type_deduction) || (__cpp_return_type_deduction < 201304)
|
Chris@101
|
152 # define BOOST_NO_CXX14_RETURN_TYPE_DEDUCTION
|
Chris@101
|
153 #endif
|
Chris@101
|
154 #if !defined(__cpp_variable_templates) || (__cpp_variable_templates < 201304)
|
Chris@101
|
155 # define BOOST_NO_CXX14_VARIABLE_TEMPLATES
|
Chris@101
|
156 #endif
|
Chris@16
|
157
|
Chris@16
|
158 #define BOOST_COMPILER "Metrowerks CodeWarrior C++ version " BOOST_STRINGIZE(BOOST_COMPILER_VERSION)
|
Chris@16
|
159
|
Chris@16
|
160 //
|
Chris@16
|
161 // versions check:
|
Chris@16
|
162 // we don't support Metrowerks prior to version 5.3:
|
Chris@16
|
163 #if __MWERKS__ < 0x2301
|
Chris@16
|
164 # error "Compiler not supported or configured - please reconfigure"
|
Chris@16
|
165 #endif
|
Chris@16
|
166 //
|
Chris@16
|
167 // last known and checked version:
|
Chris@16
|
168 #if (__MWERKS__ > 0x3205)
|
Chris@16
|
169 # if defined(BOOST_ASSERT_CONFIG)
|
Chris@16
|
170 # error "Unknown compiler version - please run the configure tests and report the results"
|
Chris@16
|
171 # endif
|
Chris@16
|
172 #endif
|
Chris@16
|
173
|
Chris@16
|
174
|
Chris@16
|
175
|
Chris@16
|
176
|
Chris@16
|
177
|
Chris@16
|
178
|
Chris@16
|
179
|