williamr@2
|
1 |
/*
|
williamr@2
|
2 |
* © Portions copyright (c) 2006-2007 Nokia Corporation. All rights reserved.
|
williamr@2
|
3 |
*
|
williamr@2
|
4 |
* Copyright (c) 1997
|
williamr@2
|
5 |
* Moscow Center for SPARC Technology
|
williamr@2
|
6 |
*
|
williamr@2
|
7 |
* Copyright (c) 1999
|
williamr@2
|
8 |
* Boris Fomitchev
|
williamr@2
|
9 |
*
|
williamr@2
|
10 |
* This material is provided "as is", with absolutely no warranty expressed
|
williamr@2
|
11 |
* or implied. Any use is at your own risk.
|
williamr@2
|
12 |
*
|
williamr@2
|
13 |
* Permission to use or copy this software for any purpose is hereby granted
|
williamr@2
|
14 |
* without fee, provided the above notices are retained on all copies.
|
williamr@2
|
15 |
* Permission to modify the code and to distribute modified code is granted,
|
williamr@2
|
16 |
* provided the above notices are retained, and a notice that the code was
|
williamr@2
|
17 |
* modified is included with the above copyright notice.
|
williamr@2
|
18 |
*
|
williamr@2
|
19 |
*/
|
williamr@2
|
20 |
|
williamr@2
|
21 |
/*
|
williamr@2
|
22 |
* Purpose of this file :
|
williamr@2
|
23 |
*
|
williamr@2
|
24 |
* A list of COMPILER-SPECIFIC portion of STLport settings.
|
williamr@2
|
25 |
* This file is provided to help in manulal configuration
|
williamr@2
|
26 |
* of STLport. This file is being included by stlcomp.h
|
williamr@2
|
27 |
* when STLport is unable to identify your compiler.
|
williamr@2
|
28 |
* Please remove the error diagnostic below before adjusting
|
williamr@2
|
29 |
* macros.
|
williamr@2
|
30 |
*
|
williamr@2
|
31 |
*/
|
williamr@2
|
32 |
# ifndef _STLP_EPOC_H
|
williamr@2
|
33 |
# define _STLP_EPOC_H
|
williamr@2
|
34 |
|
williamr@2
|
35 |
// NON-STANDARD!!!!
|
williamr@2
|
36 |
|
williamr@2
|
37 |
#if defined(__WINS__)
|
williamr@2
|
38 |
# pragma warning ( disable : 4018 4097 4100 4127 4244 4284 4511 4512 4514 4786 4800 ) //4355 4284 4231 4511 4512 4097 4786 4800 4018 4146 4244 4514 4127 4100 4663)
|
williamr@2
|
39 |
# define _STLP_NO_FUNCTION_TMPL_PARTIAL_ORDER 1
|
williamr@2
|
40 |
// Uncomment if partial order of template functions is not available
|
williamr@2
|
41 |
# define _STLP_NO_FUNC_PARTIAL_ORDERING 1
|
williamr@2
|
42 |
#endif
|
williamr@2
|
43 |
/*
|
williamr@2
|
44 |
#ifndef _STLP_NO_IOSTREAMS
|
williamr@2
|
45 |
# define _STLP_NO_IOSTREAMS 1
|
williamr@2
|
46 |
#endif
|
williamr@2
|
47 |
|
williamr@2
|
48 |
# undef _STLP_OWN_IOSTREAMS
|
williamr@2
|
49 |
# define _STLP_NO_NATIVE_MBSTATE_T 1
|
williamr@2
|
50 |
//# define _NOTHREADS 1
|
williamr@2
|
51 |
# define _STLP_NO_TYPEINFO 1
|
williamr@2
|
52 |
*/
|
williamr@2
|
53 |
#ifndef __PLACEMENT_NEW_INLINE
|
williamr@2
|
54 |
#ifndef __E32STD_H__
|
williamr@2
|
55 |
inline void * operator new(unsigned int, void *_P) { return (_P); }
|
williamr@2
|
56 |
#define __PLACEMENT_NEW_INLINE
|
williamr@2
|
57 |
#endif // E32STD_H
|
williamr@2
|
58 |
#endif
|
williamr@2
|
59 |
|
williamr@2
|
60 |
//==========================================================
|
williamr@2
|
61 |
|
williamr@2
|
62 |
// the values choosen here as defaults try to give
|
williamr@2
|
63 |
// maximum functionality on the most conservative settings
|
williamr@2
|
64 |
|
williamr@2
|
65 |
// Mostly correct guess, change it for Alpha (and other environments
|
williamr@2
|
66 |
// that has 64-bit "long")
|
williamr@2
|
67 |
# define _STLP_UINT32_T unsigned long
|
williamr@2
|
68 |
|
williamr@2
|
69 |
// Disables wchar_t functinality
|
williamr@2
|
70 |
# define _STLP_NO_WCHAR_T 1
|
williamr@2
|
71 |
|
williamr@2
|
72 |
// Define if wchar_t is not a unique type, and is actually a typedef to unsigned short.
|
williamr@2
|
73 |
// # define _STLP_WCHAR_T_IS_USHORT 1
|
williamr@2
|
74 |
|
williamr@2
|
75 |
// Uncomment if long long is available
|
williamr@2
|
76 |
// # define _STLP_LONG_LONG long long
|
williamr@2
|
77 |
|
williamr@2
|
78 |
// Uncomment if long double is not available
|
williamr@2
|
79 |
// # define _STLP_NO_LONG_DOUBLE 1
|
williamr@2
|
80 |
|
williamr@2
|
81 |
// Uncomment this if your compiler does not support namespaces
|
williamr@2
|
82 |
# define _STLP_HAS_NO_NAMESPACES 1
|
williamr@2
|
83 |
|
williamr@2
|
84 |
// Uncomment if "using" keyword does not work with template types
|
williamr@2
|
85 |
// # define _STLP_BROKEN_USING_DIRECTIVE 1
|
williamr@2
|
86 |
|
williamr@2
|
87 |
// Uncomment this if your compiler does not support exceptions
|
williamr@2
|
88 |
# define _STLP_HAS_NO_EXCEPTIONS 1
|
williamr@2
|
89 |
|
williamr@2
|
90 |
// Header <new> that comes with the compiler
|
williamr@2
|
91 |
// does not define bad_alloc exception
|
williamr@2
|
92 |
//#if defined(__WINS__)
|
williamr@2
|
93 |
// Possibly required ???
|
williamr@2
|
94 |
# define _STLP_NO_BAD_ALLOC 1
|
williamr@2
|
95 |
//#endif
|
williamr@2
|
96 |
|
williamr@2
|
97 |
// Uncomment if member template methods are not available
|
williamr@2
|
98 |
// # define _STLP_NO_MEMBER_TEMPLATES 1
|
williamr@2
|
99 |
|
williamr@2
|
100 |
// Uncomment if member template classes are not available
|
williamr@2
|
101 |
#if defined(__WINS__)
|
williamr@2
|
102 |
# define _STLP_NO_MEMBER_TEMPLATE_CLASSES 1
|
williamr@2
|
103 |
#endif
|
williamr@2
|
104 |
|
williamr@2
|
105 |
// Uncomment if friend member templates are not available
|
williamr@2
|
106 |
#if defined(__WINS__)
|
williamr@2
|
107 |
// Possibly required ???
|
williamr@2
|
108 |
//# define _STLP_NO_FRIEND_TEMPLATES 1
|
williamr@2
|
109 |
#endif
|
williamr@2
|
110 |
|
williamr@2
|
111 |
// Compiler does not accept friend declaration qualified with namespace name.
|
williamr@2
|
112 |
// # define _STLP_NO_QUALIFIED_FRIENDS 1
|
williamr@2
|
113 |
|
williamr@2
|
114 |
// Uncomment if partial specialization is not available
|
williamr@2
|
115 |
#if defined(__WINS__)
|
williamr@2
|
116 |
# define _STLP_NO_CLASS_PARTIAL_SPECIALIZATION 1
|
williamr@2
|
117 |
#endif
|
williamr@2
|
118 |
|
williamr@2
|
119 |
// Define if class being partially specialized require full name (template parameters)
|
williamr@2
|
120 |
// of itself for method declarations
|
williamr@2
|
121 |
// # define _STLP_PARTIAL_SPEC_NEEDS_TEMPLATE_ARGS
|
williamr@2
|
122 |
|
williamr@2
|
123 |
// Compiler has problems specializing members of partially
|
williamr@2
|
124 |
// specialized class
|
williamr@2
|
125 |
// # define _STLP_MEMBER_SPECIALIZATION_BUG
|
williamr@2
|
126 |
|
williamr@2
|
127 |
// Compiler requires typename keyword on outline method definition
|
williamr@2
|
128 |
// explicitly taking nested types/typedefs
|
williamr@2
|
129 |
// #define _STLP_TYPENAME_ON_RETURN_TYPE
|
williamr@2
|
130 |
|
williamr@2
|
131 |
// * _STLP_STATIC_CONST_INIT_BUG: defined if the compiler can't handle a
|
williamr@2
|
132 |
// constant-initializer in the declaration of a static const data member
|
williamr@2
|
133 |
// of integer type. (See section 9.4.2, paragraph 4, of the C++ standard.)
|
williamr@2
|
134 |
#if defined(__WINS__)
|
williamr@2
|
135 |
# define _STLP_STATIC_CONST_INIT_BUG
|
williamr@2
|
136 |
#endif
|
williamr@2
|
137 |
|
williamr@2
|
138 |
// Define if default constructor for builtin integer type fails to initialize it to 0
|
williamr@2
|
139 |
// # define _STLP_DEFAULT_CONSTRUCTOR_BUG 1
|
williamr@2
|
140 |
|
williamr@2
|
141 |
// Defined if constructor
|
williamr@2
|
142 |
// required to explicitly call member's default constructors for const objects
|
williamr@2
|
143 |
// # define _STLP_CONST_CONSTRUCTOR_BUG 1
|
williamr@2
|
144 |
|
williamr@2
|
145 |
// Define this if compiler lacks <exception> header
|
williamr@2
|
146 |
# define _STLP_NO_EXCEPTION_HEADER 1
|
williamr@2
|
147 |
|
williamr@2
|
148 |
// Uncomment if native new-style C library headers lile <cstddef>, etc are not available.
|
williamr@2
|
149 |
# define _STLP_HAS_NO_NEW_C_HEADERS 1
|
williamr@2
|
150 |
|
williamr@2
|
151 |
// uncomment if new-style headers <new> is available
|
williamr@2
|
152 |
// # define _STLP_HAS_NEW_NEW_HEADER 1
|
williamr@2
|
153 |
|
williamr@2
|
154 |
// uncomment this if <iostream> and other STD headers put their stuff in ::namespace,
|
williamr@2
|
155 |
// not std::
|
williamr@2
|
156 |
// # define _STLP_VENDOR_GLOBAL_STD
|
williamr@2
|
157 |
|
williamr@2
|
158 |
// uncomment this if <cstdio> and the like put stuff in ::namespace,
|
williamr@2
|
159 |
// not std::
|
williamr@2
|
160 |
# define _STLP_VENDOR_GLOBAL_CSTD
|
williamr@2
|
161 |
|
williamr@2
|
162 |
// Edit relative path below (or put full path) to get native
|
williamr@2
|
163 |
// compiler headers included. Default is "../include".
|
williamr@2
|
164 |
// C headers may reside in different directory, so separate macro is provided.
|
williamr@2
|
165 |
// Hint : never install STLport in the directory that ends with "include"
|
williamr@2
|
166 |
// # define _STLP_NATIVE_INCLUDE_PATH ../include
|
williamr@2
|
167 |
# define _STLP_NATIVE_C_INCLUDE_PATH libc
|
williamr@2
|
168 |
# define _STLP_NATIVE_INCLUDE_PATH libc
|
williamr@2
|
169 |
|
williamr@2
|
170 |
//==========================================================
|
williamr@2
|
171 |
# endif
|