|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 // STLport configuration file |
|
18 // It is internal STLport header - DO NOT include it directly |
|
19 |
|
20 #define _STLP_COMPILER "Watcom" |
|
21 |
|
22 # ifndef _STLP_USE_NO_IOSTREAMS |
|
23 # define _STLP_USE_NO_IOSTREAMS |
|
24 # endif |
|
25 |
|
26 # define _STLP_NO_RELOPS_NAMESPACE |
|
27 # define _STLP_NO_PARTIAL_SPECIALIZATION_SYNTAX |
|
28 |
|
29 # define _STLP_HAS_SPECIFIC_PROLOG_EPILOG |
|
30 # define _STLP_DONT_SIMULATE_PARTIAL_SPEC_FOR_TYPE_TRAITS |
|
31 # define _STLP_USE_OLD_HP_ITERATOR_QUERIES |
|
32 |
|
33 // On QNX, headers are supposed to be found in /usr/include, |
|
34 // so default "../include" should work. |
|
35 # ifndef __QNX__ |
|
36 # define _STLP_NATIVE_INCLUDE_PATH ../h |
|
37 # endif |
|
38 |
|
39 // Inline replacements for locking calls under Watcom |
|
40 // Define _STLP_NO_WATCOM_INLINE_INTERLOCK to keep using |
|
41 // standard WIN32 calls |
|
42 // Define _STL_MULTIPROCESSOR to enable lock |
|
43 #if !defined(_STLP_NO_WATCOM_INLINE_INTERLOCK) |
|
44 |
|
45 long __stl_InterlockedIncrement( long *var ); |
|
46 long __stl_InterlockedDecrement( long *var ); |
|
47 |
|
48 #ifdef _STL_MULTIPROCESSOR |
|
49 // Multiple Processors, add lock prefix |
|
50 #pragma aux __stl_InterlockedIncrement parm [ ecx ] = \ |
|
51 ".586" \ |
|
52 "mov eax, 1" \ |
|
53 "lock xadd [ecx], eax" \ |
|
54 "inc eax" \ |
|
55 value [eax]; |
|
56 |
|
57 |
|
58 #pragma aux __stl_InterlockedDecrement parm [ ecx ] = \ |
|
59 ".586" \ |
|
60 "mov eax, 0FFFFFFFFh" \ |
|
61 "lock xadd [ecx], eax" \ |
|
62 "dec eax" \ |
|
63 value [eax]; |
|
64 #else |
|
65 // Single Processor, lock prefix not needed |
|
66 #pragma aux __stl_InterlockedIncrement parm [ ecx ] = \ |
|
67 ".586" \ |
|
68 "mov eax, 1" \ |
|
69 "xadd [ecx], eax" \ |
|
70 "inc eax" \ |
|
71 value [eax]; |
|
72 |
|
73 #pragma aux __stl_InterlockedDecrement parm [ ecx ] = \ |
|
74 ".586" \ |
|
75 "mov eax, 0FFFFFFFFh" \ |
|
76 "xadd [ecx], eax" \ |
|
77 "dec eax" \ |
|
78 value [eax]; |
|
79 #endif // _STL_MULTIPROCESSOR |
|
80 |
|
81 long __stl_InterlockedExchange( long *Destination, long Value ); |
|
82 |
|
83 // xchg has auto-lock |
|
84 #pragma aux __stl_InterlockedExchange parm [ecx] [eax] = \ |
|
85 ".586" \ |
|
86 "xchg eax, [ecx]" \ |
|
87 value [eax]; |
|
88 #else |
|
89 |
|
90 #define __stl_InterlockedIncrement InterlockedIncrement |
|
91 #define __stl_InterlockedDecrement InterlockedDecrement |
|
92 #define __stl_InterlockedExchange InterlockedExchange |
|
93 #endif /* INLINE INTERLOCK */ |
|
94 |
|
95 #define _STLP_ATOMIC_INCREMENT(__x) __stl_InterlockedIncrement((long*)__x) |
|
96 #define _STLP_ATOMIC_DECREMENT(__x) __stl_InterlockedDecrement((long*)__x) |
|
97 #define _STLP_ATOMIC_EXCHANGE(__x, __y) __stl_InterlockedExchange((long*)__x, (long)__y) |
|
98 |
|
99 // boris : is this true or just the header is not in /usr/include ? |
|
100 # ifdef __QNX__ |
|
101 # define _STLP_NO_TYPEINFO 1 |
|
102 # endif |
|
103 |
|
104 # define _STLP_NO_FUNCTION_TMPL_PARTIAL_ORDER 1 |
|
105 # define _STLP_NO_CLASS_PARTIAL_SPECIALIZATION 1 |
|
106 # define _STLP_NO_MEMBER_TEMPLATE_KEYWORD 1 |
|
107 # define _STLP_NO_MEMBER_TEMPLATES 1 |
|
108 # define _STLP_NO_FRIEND_TEMPLATES 1 |
|
109 # define _STLP_NO_MEMBER_TEMPLATE_CLASSES 1 |
|
110 |
|
111 |
|
112 # define _STLP_LIMITED_DEFAULT_TEMPLATES 1 |
|
113 # define _STLP_HAS_NO_NAMESPACES 1 |
|
114 # define _STLP_NEED_TYPENAME 1 |
|
115 |
|
116 # if __WATCOMC__ < 1100 |
|
117 # define _STLP_NO_WCHAR_T 1 |
|
118 # define _STLP_NO_PARTIAL_SPECIALIZATION_SYNTAX 1 |
|
119 # endif |
|
120 |
|
121 # define _STLP_NO_EXPLICIT_FUNCTION_TMPL_ARGS 1 |
|
122 |
|
123 # define _STLP_STATIC_CONST_INIT_BUG 1 |
|
124 // # define _STLP_THROW_RETURN_BUG 1 |
|
125 # define _STLP_NO_TEMPLATE_CONVERSIONS 1 |
|
126 |
|
127 # define _STLP_BASE_TYPEDEF_OUTSIDE_BUG 1 |
|
128 |
|
129 # define _STLP_HAS_NO_NEW_IOSTREAMS 1 |
|
130 # define _STLP_HAS_NO_NEW_C_HEADERS 1 |
|
131 # define _STLP_NO_NEW_NEW_HEADER 1 |
|
132 # define _STLP_VENDOR_GLOBAL_STD |
|
133 |
|
134 # define _STLP_NO_DEFAULT_NON_TYPE_PARAM 1 |
|
135 # define _STLP_NON_TYPE_TMPL_PARAM_BUG 1 |
|
136 # define _STLP_NONTEMPL_BASE_MATCH_BUG |
|
137 # define _STLP_NO_EXCEPTION_HEADER 1 |
|
138 # define _STLP_NO_BAD_ALLOC 1 |
|
139 |
|
140 # define _STLP_NESTED_TYPE_PARAM_BUG 1 |
|
141 |
|
142 # define _STLP_NO_USING_FOR_GLOBAL_FUNCTIONS 1 |
|
143 |
|
144 # if (__WATCOM_CPLUSPLUS__ < 1100 ) |
|
145 # define _STLP_NO_BOOL 1 |
|
146 # define _STLP_NEED_EXPLICIT 1 |
|
147 # define _STLP_NEED_MUTABLE 1 |
|
148 # define _STLP_NO_ARROW_OPERATOR 1 |
|
149 # endif |
|
150 // This one is present in 11, but apparently has bugs (with auto_ptr). |
|
151 # define _STLP_NO_NEW_STYLE_CASTS 1 |
|
152 |
|
153 // Get rid of Watcom's min and max macros |
|
154 #undef min |
|
155 #undef max |
|
156 |
|
157 // for switches (-xs, -xss, -xst) |
|
158 // |
|
159 #if !(defined (__SW_XS) || defined (__SW_XSS) || defined(__SW_XST)) |
|
160 # define _STLP_HAS_NO_EXCEPTIONS 1 |
|
161 # endif |
|
162 |
|
163 # if defined ( _MT ) && !defined (_NOTHREADS) && !defined (_REENTRANT) |
|
164 # define _REENTRANT 1 |
|
165 # endif |
|
166 |
|
167 |
|
168 |
|
169 |
|
170 |