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