williamr@2
|
1 |
/*
|
williamr@2
|
2 |
* Copyright (c) 1997
|
williamr@2
|
3 |
* Moscow Center for SPARC Technology
|
williamr@2
|
4 |
*
|
williamr@2
|
5 |
* Copyright (c) 1999
|
williamr@2
|
6 |
* Boris Fomitchev
|
williamr@2
|
7 |
*
|
williamr@2
|
8 |
* This material is provided "as is", with absolutely no warranty expressed
|
williamr@2
|
9 |
* or implied. Any use is at your own risk.
|
williamr@2
|
10 |
*
|
williamr@2
|
11 |
* Permission to use or copy this software for any purpose is hereby granted
|
williamr@2
|
12 |
* without fee, provided the above notices are retained on all copies.
|
williamr@2
|
13 |
* Permission to modify the code and to distribute modified code is granted,
|
williamr@2
|
14 |
* provided the above notices are retained, and a notice that the code was
|
williamr@2
|
15 |
* modified is included with the above copyright notice.
|
williamr@2
|
16 |
*
|
williamr@2
|
17 |
*/
|
williamr@2
|
18 |
|
williamr@2
|
19 |
/*
|
williamr@2
|
20 |
* Purpose of this file :
|
williamr@2
|
21 |
*
|
williamr@2
|
22 |
* A list of COMPILER-SPECIFIC portion of STLport settings.
|
williamr@2
|
23 |
* This file is provided to help in manual configuration
|
williamr@2
|
24 |
* of STLport. This file is being included by stlcomp.h
|
williamr@2
|
25 |
* when STLport is unable to identify your compiler.
|
williamr@2
|
26 |
* Please remove the error diagnostic below before adjusting
|
williamr@2
|
27 |
* macros.
|
williamr@2
|
28 |
*
|
williamr@2
|
29 |
*/
|
williamr@2
|
30 |
#ifndef _STLP_MYCOMP_H
|
williamr@2
|
31 |
#define _STLP_MYCOMP_H
|
williamr@2
|
32 |
|
williamr@2
|
33 |
//#error "Your compiler version is not recognized by STLport. Please edit <stlport/stl/config/stl_mycomp.h>"
|
williamr@2
|
34 |
|
williamr@2
|
35 |
//==========================================================
|
williamr@2
|
36 |
|
williamr@2
|
37 |
// the values choosen here as defaults try to give
|
williamr@2
|
38 |
// maximum functionality on the most conservative settings
|
williamr@2
|
39 |
|
williamr@2
|
40 |
// Mostly correct guess, change it for Alpha (and other environments
|
williamr@2
|
41 |
// that has 64-bit "long")
|
williamr@2
|
42 |
// # define _STLP_UINT32_T unsigned long
|
williamr@2
|
43 |
|
williamr@2
|
44 |
// Disables wchar_t functionality
|
williamr@2
|
45 |
// # define _STLP_NO_WCHAR_T 1
|
williamr@2
|
46 |
|
williamr@2
|
47 |
// Define if wchar_t is not a unique type, and is actually a typedef to unsigned short.
|
williamr@2
|
48 |
// # define _STLP_WCHAR_T_IS_USHORT 1
|
williamr@2
|
49 |
|
williamr@2
|
50 |
// Uncomment if long long is available
|
williamr@2
|
51 |
// # define _STLP_LONG_LONG long long
|
williamr@2
|
52 |
|
williamr@2
|
53 |
// Uncomment if long double is not available
|
williamr@2
|
54 |
// # define _STLP_NO_LONG_DOUBLE 1
|
williamr@2
|
55 |
|
williamr@2
|
56 |
// Uncomment this if your compiler does not support "typename" keyword
|
williamr@2
|
57 |
// # define _STLP_NEED_TYPENAME 1
|
williamr@2
|
58 |
|
williamr@2
|
59 |
// Uncomment this if your compiler does not support "mutable" keyword
|
williamr@2
|
60 |
// # define _STLP_NEED_MUTABLE 1
|
williamr@2
|
61 |
|
williamr@2
|
62 |
// Uncomment this if your compiler does not support "explicit" keyword
|
williamr@2
|
63 |
// # define _STLP_NEED_EXPLICIT 1
|
williamr@2
|
64 |
|
williamr@2
|
65 |
// Uncomment if new-style-casts like const_cast<> are not available
|
williamr@2
|
66 |
// # define _STLP_NO_NEW_STYLE_CASTS 1
|
williamr@2
|
67 |
|
williamr@2
|
68 |
// Uncomment this if your compiler does not have "bool" type
|
williamr@2
|
69 |
// # define _STLP_NO_BOOL 1
|
williamr@2
|
70 |
|
williamr@2
|
71 |
// Uncomment this if your compiler does not have "bool" type, but has "bool" keyword reserved
|
williamr@2
|
72 |
// # define _STLP_DONT_USE_BOOL_TYPEDEF 1
|
williamr@2
|
73 |
|
williamr@2
|
74 |
// Uncomment this if your compiler does not have "bool" type, but defines "bool" in <yvals.h>
|
williamr@2
|
75 |
// # define _STLP_YVALS_H 1
|
williamr@2
|
76 |
|
williamr@2
|
77 |
// Uncomment this if your compiler has limited or no default template arguments for classes
|
williamr@2
|
78 |
// # define _STLP_LIMITED_DEFAULT_TEMPLATES 1
|
williamr@2
|
79 |
|
williamr@2
|
80 |
// Uncomment this if your compiler support only complete (not dependent on other parameters)
|
williamr@2
|
81 |
// types as default parameters for class templates
|
williamr@2
|
82 |
// # define _STLP_DEFAULT_TYPE_PARAM 1
|
williamr@2
|
83 |
|
williamr@2
|
84 |
// Uncomment this if your compiler do not support default parameters in template class methods
|
williamr@2
|
85 |
// # define _STLP_DONT_SUP_DFLT_PARAM 1
|
williamr@2
|
86 |
|
williamr@2
|
87 |
// Uncomment this if your compiler has problem with not-type
|
williamr@2
|
88 |
// default template parameters
|
williamr@2
|
89 |
// # define _STLP_NO_DEFAULT_NON_TYPE_PARAM 1
|
williamr@2
|
90 |
|
williamr@2
|
91 |
// Define if compiler has
|
williamr@2
|
92 |
// trouble with functions getting non-type-parameterized classes as parameters
|
williamr@2
|
93 |
// # define _STLP_NON_TYPE_TMPL_PARAM_BUG 1
|
williamr@2
|
94 |
|
williamr@2
|
95 |
// Uncomment this if your compiler lacks static data members.
|
williamr@2
|
96 |
// Uncomment next line if your compiler supports __attribute__((weak))
|
williamr@2
|
97 |
// # define _STLP_NO_STATIC_TEMPLATE_DATA 1
|
williamr@2
|
98 |
// # define _STLP_WEAK_ATTRIBUTE 1
|
williamr@2
|
99 |
|
williamr@2
|
100 |
// Uncomment this if your compiler does not support namespaces
|
williamr@2
|
101 |
// # define _STLP_HAS_NO_NAMESPACES 1
|
williamr@2
|
102 |
|
williamr@2
|
103 |
// Uncomment if "using" keyword does not work with template types
|
williamr@2
|
104 |
// # define _STLP_BROKEN_USING_DIRECTIVE 1
|
williamr@2
|
105 |
|
williamr@2
|
106 |
// Uncomment this if your compiler does not support exceptions
|
williamr@2
|
107 |
// # define _STLP_HAS_NO_EXCEPTIONS 1
|
williamr@2
|
108 |
|
williamr@2
|
109 |
// Uncomment this when you are able to detect that the user do not
|
williamr@2
|
110 |
// want to use the exceptions feature.
|
williamr@2
|
111 |
// # define _STLP_DONT_USE_EXCEPTIONS 1
|
williamr@2
|
112 |
|
williamr@2
|
113 |
// Uncomment this if your compiler does not support exception specifications
|
williamr@2
|
114 |
// # define _STLP_NO_EXCEPTION_SPEC
|
williamr@2
|
115 |
|
williamr@2
|
116 |
// Define this if your compiler requires return statement after throw()
|
williamr@2
|
117 |
// # define _STLP_THROW_RETURN_BUG 1
|
williamr@2
|
118 |
|
williamr@2
|
119 |
// Define this if your compiler do not support return of void
|
williamr@2
|
120 |
// # define _STLP_DONT_RETURN_VOID 1
|
williamr@2
|
121 |
|
williamr@2
|
122 |
// Header <new> that comes with the compiler
|
williamr@2
|
123 |
// does not define bad_alloc exception
|
williamr@2
|
124 |
// # define _STLP_NO_BAD_ALLOC 1
|
williamr@2
|
125 |
|
williamr@2
|
126 |
// Define this if your compiler do not throw bad_alloc from the new operator
|
williamr@2
|
127 |
// # define _STLP_NEW_DONT_THROW_BAD_ALLOC 1
|
williamr@2
|
128 |
|
williamr@2
|
129 |
// Uncomment if member template methods are not available
|
williamr@2
|
130 |
// # define _STLP_NO_MEMBER_TEMPLATES 1
|
williamr@2
|
131 |
|
williamr@2
|
132 |
// Uncomment if member template classes are not available
|
williamr@2
|
133 |
// # define _STLP_NO_MEMBER_TEMPLATE_CLASSES 1
|
williamr@2
|
134 |
|
williamr@2
|
135 |
// Uncomment if your compiler do not support the std::allocator rebind technique
|
williamr@2
|
136 |
// This is a special case of bad member template classes support, it is automatically
|
williamr@2
|
137 |
// defined if _STLP_NO_MEMBER_TEMPLATE_CLASSES is defined.
|
williamr@2
|
138 |
// # define _STLP_DONT_SUPPORT_REBIND_MEMBER_TEMPLATE 1
|
williamr@2
|
139 |
|
williamr@2
|
140 |
// Uncomment if no "template" keyword should be used with member template classes
|
williamr@2
|
141 |
// # define _STLP_NO_MEMBER_TEMPLATE_KEYWORD 1
|
williamr@2
|
142 |
|
williamr@2
|
143 |
// Uncomment if friend member templates are not available
|
williamr@2
|
144 |
// # define _STLP_NO_FRIEND_TEMPLATES 1
|
williamr@2
|
145 |
|
williamr@2
|
146 |
// Compiler does not accept friend declaration qualified with namespace name.
|
williamr@2
|
147 |
// # define _STLP_NO_QUALIFIED_FRIENDS 1
|
williamr@2
|
148 |
|
williamr@2
|
149 |
// Uncomment if partial specialization is not available
|
williamr@2
|
150 |
// # define _STLP_NO_CLASS_PARTIAL_SPECIALIZATION 1
|
williamr@2
|
151 |
|
williamr@2
|
152 |
// Define if class being partially specialized require full name (template parameters)
|
williamr@2
|
153 |
// of itself for method declarations
|
williamr@2
|
154 |
// # define _STLP_PARTIAL_SPEC_NEEDS_TEMPLATE_ARGS
|
williamr@2
|
155 |
|
williamr@2
|
156 |
// Compiler has problem with qualified specializations (cont int, volatile int...)
|
williamr@2
|
157 |
// # define _STLP_QUALIFIED_SPECIALIZATION_BUG
|
williamr@2
|
158 |
|
williamr@2
|
159 |
// Compiler has problems specializing members of partially
|
williamr@2
|
160 |
// specialized class
|
williamr@2
|
161 |
// # define _STLP_MEMBER_SPECIALIZATION_BUG
|
williamr@2
|
162 |
|
williamr@2
|
163 |
// Uncomment if partial order of template functions is not available
|
williamr@2
|
164 |
// # define _STLP_NO_FUNCTION_TMPL_PARTIAL_ORDER 1
|
williamr@2
|
165 |
|
williamr@2
|
166 |
// Uncomment if specialization of methods is not allowed
|
williamr@2
|
167 |
// # define _STLP_NO_METHOD_SPECIALIZATION 1
|
williamr@2
|
168 |
|
williamr@2
|
169 |
// Uncomment if full specialization does not use partial spec. syntax : template <> struct ....
|
williamr@2
|
170 |
// # define _STLP_NO_PARTIAL_SPECIALIZATION_SYNTAX 1
|
williamr@2
|
171 |
|
williamr@2
|
172 |
// Uncomment if compiler does not support explicit template arguments for functions
|
williamr@2
|
173 |
// # define _STLP_NO_EXPLICIT_FUNCTION_TMPL_ARGS
|
williamr@2
|
174 |
|
williamr@2
|
175 |
// Uncomment this if your compiler can't inline while(), for()
|
williamr@2
|
176 |
// # define _STLP_LOOP_INLINE_PROBLEMS 1
|
williamr@2
|
177 |
|
williamr@2
|
178 |
// Define if the compiler fails to match a template function argument of base
|
williamr@2
|
179 |
// # define _STLP_BASE_MATCH_BUG 1
|
williamr@2
|
180 |
|
williamr@2
|
181 |
// Define if the compiler fails to match a template function argument of base
|
williamr@2
|
182 |
// (non-template)
|
williamr@2
|
183 |
//# define _STLP_NONTEMPL_BASE_MATCH_BUG 1
|
williamr@2
|
184 |
|
williamr@2
|
185 |
// Define if the compiler rejects outline method definition
|
williamr@2
|
186 |
// explicitly taking nested types/typedefs
|
williamr@2
|
187 |
// # define _STLP_NESTED_TYPE_PARAM_BUG 1
|
williamr@2
|
188 |
|
williamr@2
|
189 |
// Compiler requires typename keyword on outline method definition
|
williamr@2
|
190 |
// explicitly taking nested types/typedefs
|
williamr@2
|
191 |
// #define _STLP_TYPENAME_ON_RETURN_TYPE
|
williamr@2
|
192 |
|
williamr@2
|
193 |
// Define if the baseclass typedefs not visible from outside
|
williamr@2
|
194 |
// # define _STLP_BASE_TYPEDEF_OUTSIDE_BUG 1
|
williamr@2
|
195 |
|
williamr@2
|
196 |
// if your compiler have serious problems with typedefs, try this one
|
williamr@2
|
197 |
// # define _STLP_BASE_TYPEDEF_BUG 1
|
williamr@2
|
198 |
|
williamr@2
|
199 |
// Uncomment if getting errors compiling mem_fun* adaptors
|
williamr@2
|
200 |
// # define _STLP_MEMBER_POINTER_PARAM_BUG 1
|
williamr@2
|
201 |
|
williamr@2
|
202 |
// * _STLP_STATIC_CONST_INIT_BUG: defined if the compiler can't handle a
|
williamr@2
|
203 |
// constant-initializer in the declaration of a static const data member
|
williamr@2
|
204 |
// of integer type. (See section 9.4.2, paragraph 4, of the C++ standard.)
|
williamr@2
|
205 |
// # define _STLP_STATIC_CONST_INIT_BUG
|
williamr@2
|
206 |
|
williamr@2
|
207 |
// Define if default constructor for builtin integer type fails to initialize it to 0
|
williamr@2
|
208 |
// In expression like new(&char) char():
|
williamr@2
|
209 |
//# define _STLP_DEF_CONST_PLCT_NEW_BUG 1
|
williamr@2
|
210 |
// In default function parameter like _M_method(_Tp __x = _Tp())
|
williamr@2
|
211 |
//# define _STLP_DEF_CONST_DEF_PARAM_BUG 1
|
williamr@2
|
212 |
|
williamr@2
|
213 |
// Defined if constructor
|
williamr@2
|
214 |
// required to explicitly call member's default constructors for const objects
|
williamr@2
|
215 |
// # define _STLP_CONST_CONSTRUCTOR_BUG 1
|
williamr@2
|
216 |
|
williamr@2
|
217 |
// Defined if the compiler has trouble calling POD-types constructors/destructors
|
williamr@2
|
218 |
// # define _STLP_TRIVIAL_CONSTRUCTOR_BUG 1
|
williamr@2
|
219 |
// # define _STLP_TRIVIAL_DESTRUCTOR_BUG 1
|
williamr@2
|
220 |
|
williamr@2
|
221 |
// Define if having problems specializing maps/sets with
|
williamr@2
|
222 |
// key type being const
|
williamr@2
|
223 |
// # define _STLP_MULTI_CONST_TEMPLATE_ARG_BUG
|
williamr@2
|
224 |
|
williamr@2
|
225 |
// Uncomment this to disable -> operators on all iterators
|
williamr@2
|
226 |
// # define _STLP_NO_ARROW_OPERATOR 1
|
williamr@2
|
227 |
|
williamr@2
|
228 |
// Uncomment this to disble at() member functions for containers
|
williamr@2
|
229 |
// # define _STLP_NO_AT_MEMBER_FUNCTION 1
|
williamr@2
|
230 |
|
williamr@2
|
231 |
// Define this if compiler lacks <exception> header
|
williamr@2
|
232 |
// # define _STLP_NO_EXCEPTION_HEADER 1
|
williamr@2
|
233 |
|
williamr@2
|
234 |
// Uncomment this if your C library has lrand48() function
|
williamr@2
|
235 |
// # define _STLP_RAND48 1
|
williamr@2
|
236 |
|
williamr@2
|
237 |
// Uncomment if native new-style C library headers lile <cstddef>, etc are not available.
|
williamr@2
|
238 |
// # define _STLP_HAS_NO_NEW_C_HEADERS 1
|
williamr@2
|
239 |
|
williamr@2
|
240 |
// uncomment if new-style headers <new> is available
|
williamr@2
|
241 |
// # define _STLP_HAS_NEW_NEW_HEADER 1
|
williamr@2
|
242 |
|
williamr@2
|
243 |
// uncomment this if <iostream> and other STD headers put their stuff in ::namespace,
|
williamr@2
|
244 |
// not std::
|
williamr@2
|
245 |
// # define _STLP_VENDOR_GLOBAL_STD
|
williamr@2
|
246 |
|
williamr@2
|
247 |
// uncomment this if <cstdio> and the like put stuff in ::namespace,
|
williamr@2
|
248 |
// not std::
|
williamr@2
|
249 |
// # define _STLP_VENDOR_GLOBAL_CSTD
|
williamr@2
|
250 |
|
williamr@2
|
251 |
// uncomment this if your compiler consider as ambiguous a function imported within
|
williamr@2
|
252 |
// the stlport namespace and called without scope (:: or std::)
|
williamr@2
|
253 |
// # define _STLP_NO_USING_FOR_GLOBAL_FUNCTIONS 1
|
williamr@2
|
254 |
|
williamr@2
|
255 |
// uncomment this if your compiler define all the C math functions C++ additional
|
williamr@2
|
256 |
// overloads in ::namespace and not only in std::.
|
williamr@2
|
257 |
// # define _STLP_HAS_GLOBAL_C_MATH_FUNCTIONS 1
|
williamr@2
|
258 |
|
williamr@2
|
259 |
// uncomment this if your compiler has problem with the import of a namespace in
|
williamr@2
|
260 |
// an other one with the using namespace directive
|
williamr@2
|
261 |
// # define _STLP_USING_NAMESPACE_BUG 1
|
williamr@2
|
262 |
|
williamr@2
|
263 |
// Edit relative path below (or put full path) to get native
|
williamr@2
|
264 |
// compiler headers included. Default is "../include".
|
williamr@2
|
265 |
// C headers may reside in different directory, so separate macro is provided.
|
williamr@2
|
266 |
// Hint : never install STLport in the directory that ends with "include"
|
williamr@2
|
267 |
# define _STLP_NATIVE_INCLUDE_PATH
|
williamr@2
|
268 |
// # define _STLP_NATIVE_C_INCLUDE_PATH ../include
|
williamr@2
|
269 |
// # define _STLP_NATIVE_CPP_C_INCLUDE_PATH ../include
|
williamr@2
|
270 |
|
williamr@2
|
271 |
// This macro constructs header path from directory and name.
|
williamr@2
|
272 |
// You may change it if your compiler does not understand "/".
|
williamr@2
|
273 |
// # define _STLP_MAKE_HEADER(path, header) <path/header>
|
williamr@2
|
274 |
|
williamr@2
|
275 |
// This macro constructs native include header path from include path and name.
|
williamr@2
|
276 |
// You may have do define it if experimenting problems with preprocessor
|
williamr@2
|
277 |
// # define _STLP_NATIVE_HEADER(header) _STLP_MAKE_HEADER(_STLP_NATIVE_INCLUDE_PATH,header)
|
williamr@2
|
278 |
|
williamr@2
|
279 |
// Same for C headers
|
williamr@2
|
280 |
// #define _STLP_NATIVE_C_HEADER(header)
|
williamr@2
|
281 |
|
williamr@2
|
282 |
// uncomment this if your compiler/platform do not fully support the IEC 559 floating point
|
williamr@2
|
283 |
// numbers specification (also known as IEEE 754 in the US). This specification define the
|
williamr@2
|
284 |
// infinity and NaN (Not a Number) representation. Unit tests should tell you if your compiler
|
williamr@2
|
285 |
// support it.
|
williamr@2
|
286 |
// # define _STLP_NO_IEC559_SUPPORT 1
|
williamr@2
|
287 |
|
williamr@2
|
288 |
|
williamr@2
|
289 |
//==========================================================
|
williamr@2
|
290 |
#endif
|