williamr@4
|
1 |
// STLport configuration file
|
williamr@4
|
2 |
// It is internal STLport header - DO NOT include it directly
|
williamr@4
|
3 |
|
williamr@4
|
4 |
#define _STLP_COMPILER "Acc"
|
williamr@4
|
5 |
|
williamr@4
|
6 |
// system C-library dependent
|
williamr@4
|
7 |
#if defined(_XOPEN_SOURCE) && (_XOPEN_VERSION - 0 >= 4)
|
williamr@4
|
8 |
# define _STLP_RAND48 1
|
williamr@4
|
9 |
#endif
|
williamr@4
|
10 |
// # define _STLP_RAND48 1
|
williamr@4
|
11 |
#define _STLP_NO_NATIVE_MBSTATE_T 1
|
williamr@4
|
12 |
#define _STLP_HPACC_BROKEN_BUFEND 1
|
williamr@4
|
13 |
#define _STLP_WCHAR_HPACC_EXCLUDE 1
|
williamr@4
|
14 |
|
williamr@4
|
15 |
// this was reported to help, just as with SUN CC 4.2
|
williamr@4
|
16 |
#define _STLP_INLINE_STRING_LITERAL_BUG
|
williamr@4
|
17 |
|
williamr@4
|
18 |
// specific prolog is needed to select correct threads impl
|
williamr@4
|
19 |
#define _STLP_HAS_SPECIFIC_PROLOG_EPILOG
|
williamr@4
|
20 |
|
williamr@4
|
21 |
// HP aCC with +noeh
|
williamr@4
|
22 |
#ifdef __HPACC_NOEH
|
williamr@4
|
23 |
# define _STLP_HAS_NO_EXCEPTIONS 1
|
williamr@4
|
24 |
#endif
|
williamr@4
|
25 |
|
williamr@4
|
26 |
// HP compilers
|
williamr@4
|
27 |
// At that point, we only know we are on HP (and _not_ using gcc,
|
williamr@4
|
28 |
// according to "stlcomp.h"
|
williamr@4
|
29 |
|
williamr@4
|
30 |
// __HP_aCC indicate HP ANSI C++, but not always (03.xx does not
|
williamr@4
|
31 |
// define it before 3.13, for example).
|
williamr@4
|
32 |
//
|
williamr@4
|
33 |
#if defined (__HP_aCC)
|
williamr@4
|
34 |
|
williamr@4
|
35 |
# define _STLP_NO_FORCE_INSTANTIATE
|
williamr@4
|
36 |
# define _STLP_LONG_LONG long long
|
williamr@4
|
37 |
# define _STLP_NO_VENDOR_STDLIB_L
|
williamr@4
|
38 |
|
williamr@4
|
39 |
# if (__HP_aCC <= 30000 && __HP_aCC >= 12100)
|
williamr@4
|
40 |
|
williamr@4
|
41 |
//Special kludge to workaround bug in aCC A.01.23, CR JAGac40634
|
williamr@4
|
42 |
# ifdef _STLP_DEBUG
|
williamr@4
|
43 |
static void _STLP_dummy_literal() { const char *p = "x";}
|
williamr@4
|
44 |
static void _STLP_dummy_literal_2() { const char *p = "123456789"; }
|
williamr@4
|
45 |
static void _STLP_dummy_literal_3() { const char *p = "123456700000000000000089";}
|
williamr@4
|
46 |
# endif
|
williamr@4
|
47 |
|
williamr@4
|
48 |
# define _STLP_HP_ACC 0123
|
williamr@4
|
49 |
# define _STLP_NATIVE_INCLUDE_PATH ../include
|
williamr@4
|
50 |
# define _STLP_VENDOR_GLOBAL_STD 1
|
williamr@4
|
51 |
# define _STLP_VENDOR_GLOBAL_CSTD 1
|
williamr@4
|
52 |
# define _STLP_DONT_THROW_RANGE_ERRORS 1
|
williamr@4
|
53 |
# define _STLP_STATIC_CONST_INIT_BUG 1
|
williamr@4
|
54 |
# if (__HP_aCC < 12700)
|
williamr@4
|
55 |
//new flag: on most HP compilers cwchar is missing
|
williamr@4
|
56 |
# define _STLP_NO_CWCHAR
|
williamr@4
|
57 |
# endif
|
williamr@4
|
58 |
|
williamr@4
|
59 |
# define _STLP_FORCE_ALLOCATORS(t,a) \
|
williamr@4
|
60 |
typedef typename _Alloc_traits<t,a>::_Orig _STLP_dummy_type1;\
|
williamr@4
|
61 |
typedef typename _STLP_dummy_type1:: _STLP_TEMPLATE rebind<t>::other _STLP_dummy_type2;
|
williamr@4
|
62 |
|
williamr@4
|
63 |
# endif /* 123 */
|
williamr@4
|
64 |
|
williamr@4
|
65 |
// latest version and up
|
williamr@4
|
66 |
# if (__HP_aCC >= 32500 )
|
williamr@4
|
67 |
# define _STLP_HP_ACC 0325
|
williamr@4
|
68 |
|
williamr@4
|
69 |
# define _STLP_USE_NEW_C_HEADERS
|
williamr@4
|
70 |
|
williamr@4
|
71 |
# define _STLP_FORCE_ALLOCATORS(t,a) \
|
williamr@4
|
72 |
typedef typename _Alloc_traits<t,a>::_Orig _STLP_dummy_type1;\
|
williamr@4
|
73 |
typedef typename _STLP_dummy_type1:: _STLP_TEMPLATE rebind<t>::other _STLP_dummy_type2;
|
williamr@4
|
74 |
|
williamr@4
|
75 |
# if !defined ( _INCLUDE__STDC_A1_SOURCE ) // HP-UX 11i only
|
williamr@4
|
76 |
# define _STLP_HAS_NO_UNIX98_WCHAR_EXTENSIONS
|
williamr@4
|
77 |
# endif
|
williamr@4
|
78 |
|
williamr@4
|
79 |
# if defined (_HP_NAMESPACE_STD) // option -AA
|
williamr@4
|
80 |
// from now, we have a full standard lib in namespace std
|
williamr@4
|
81 |
//
|
williamr@4
|
82 |
// -AA indicates that we are compiling against Rogue Wave 2.2.1
|
williamr@4
|
83 |
// STL shipped with the HP aCC compiler. -AA tells the compiler
|
williamr@4
|
84 |
// to use the STL defined in the include_std directory.
|
williamr@4
|
85 |
//
|
williamr@4
|
86 |
# define _STLP_NATIVE_INCLUDE_PATH ../include_std
|
williamr@4
|
87 |
|
williamr@4
|
88 |
// # define _STLP_HPACC_ONLY_NATIVE_STRING 1 // STLPort _string.c includes <locale>
|
williamr@4
|
89 |
# define _STLP_HP_ACC_COMPAT -1
|
williamr@4
|
90 |
# else // option -Aa
|
williamr@4
|
91 |
# define _STLP_NATIVE_INCLUDE_PATH ../include
|
williamr@4
|
92 |
# define _STLP_VENDOR_GLOBAL_STD 1
|
williamr@4
|
93 |
# define _STLP_VENDOR_GLOBAL_CSTD 1
|
williamr@4
|
94 |
# define _STLP_DONT_THROW_RANGE_ERRORS 1
|
williamr@4
|
95 |
# endif /* _NAMESPACE_STD */
|
williamr@4
|
96 |
# endif
|
williamr@4
|
97 |
|
williamr@4
|
98 |
# if (__HP_aCC >= 31400 && __HP_aCC < 32500)
|
williamr@4
|
99 |
# define _STLP_HP_ACC 0314
|
williamr@4
|
100 |
|
williamr@4
|
101 |
# define _STLP_FORCE_ALLOCATORS(t,a) \
|
williamr@4
|
102 |
typedef typename _Alloc_traits<t,a>::_Orig _STLP_dummy_type1;\
|
williamr@4
|
103 |
typedef typename _STLP_dummy_type1:: _STLP_TEMPLATE rebind<t>::other _STLP_dummy_type2;
|
williamr@4
|
104 |
# define _STLP_NO_CWCHAR
|
williamr@4
|
105 |
# if defined (_NAMESPACE_STD) // option -AA
|
williamr@4
|
106 |
// from now, we have a full standard lib in namespace std
|
williamr@4
|
107 |
# define _STLP_NATIVE_INCLUDE_PATH ../include_std
|
williamr@4
|
108 |
//# define _STLP_HPACC_ONLY_NATIVE_STRING 1 // STLPort _string.c includes <locale>
|
williamr@4
|
109 |
# define _STLP_HP_ACC_COMPAT -1
|
williamr@4
|
110 |
# else // kind of compatibility mode
|
williamr@4
|
111 |
# define _STLP_NATIVE_INCLUDE_PATH ../include
|
williamr@4
|
112 |
# define _STLP_VENDOR_GLOBAL_STD 1
|
williamr@4
|
113 |
# define _STLP_VENDOR_GLOBAL_CSTD 1
|
williamr@4
|
114 |
# define _STLP_DONT_THROW_RANGE_ERRORS 1
|
williamr@4
|
115 |
# define _STLP_NO_ROPE 1
|
williamr@4
|
116 |
# endif /* _NAMESPACE_STD */
|
williamr@4
|
117 |
# endif /* 314 */
|
williamr@4
|
118 |
|
williamr@4
|
119 |
# if ((__HP_aCC >= 30000 && __HP_aCC < 31400) || (__HP_aCC == 1)) // A.03.13: __HP_aCC == 1
|
williamr@4
|
120 |
|
williamr@4
|
121 |
# if (__HP_aCC != 1)
|
williamr@4
|
122 |
# define _STLP_HAS_NO_NEW_C_HEADERS 1
|
williamr@4
|
123 |
# endif
|
williamr@4
|
124 |
|
williamr@4
|
125 |
# define _STLP_NO_QUALIFIED_FRIENDS 1
|
williamr@4
|
126 |
// aCC bug ? need explicit args on constructors of partial specialized
|
williamr@4
|
127 |
// classes
|
williamr@4
|
128 |
# define _STLP_PARTIAL_SPEC_NEEDS_TEMPLATE_ARGS 1
|
williamr@4
|
129 |
// ?? fbp : maybe present in some versions ?
|
williamr@4
|
130 |
# define _STLP_NO_MEMBER_TEMPLATE_CLASSES 1
|
williamr@4
|
131 |
# define _STLP_NO_MEMBER_TEMPLATE_KEYWORD 1
|
williamr@4
|
132 |
// <exception> and stuff is in global namespace
|
williamr@4
|
133 |
# define _STLP_VENDOR_GLOBAL_EXCEPT_STD
|
williamr@4
|
134 |
// fbp : moved here
|
williamr@4
|
135 |
# define _STLP_VENDOR_GLOBAL_CSTD 1
|
williamr@4
|
136 |
// # define _INCLUDE_HPUX_SOURCE
|
williamr@4
|
137 |
# define _XPG4
|
williamr@4
|
138 |
# define _INCLUDE_XOPEN_SOURCE
|
williamr@4
|
139 |
# define _INCLUDE_AES_SOURCE
|
williamr@4
|
140 |
# endif /* < 314 */
|
williamr@4
|
141 |
# if __HP_aCC == 1
|
williamr@4
|
142 |
# define _STLP_BROKEN_USING_IN_CLASS
|
williamr@4
|
143 |
# define _STLP_USING_BASE_MEMBER
|
williamr@4
|
144 |
# define _STLP_NO_CWCHAR
|
williamr@4
|
145 |
// # define _STLP_NO_WCHAR_T 1
|
williamr@4
|
146 |
# endif
|
williamr@4
|
147 |
#endif /* HP_ACC */
|
williamr@4
|
148 |
|
williamr@4
|
149 |
//
|
williamr@4
|
150 |
#ifndef __HP_aCC
|
williamr@4
|
151 |
# define _STLP_NATIVE_INCLUDE_PATH ../CC
|
williamr@4
|
152 |
# define _STLP_NATIVE_C_INCLUDE_PATH ../include
|
williamr@4
|
153 |
// it is HP's old cfront-based compiler.
|
williamr@4
|
154 |
# define _STLP_NO_BOOL 1
|
williamr@4
|
155 |
// # define _STLP_DONT_USE_BOOL_TYPEDEF 1
|
williamr@4
|
156 |
# define _STLP_NO_NEW_NEW_HEADER 1
|
williamr@4
|
157 |
# define _STLP_LIMITED_DEFAULT_TEMPLATES 1
|
williamr@4
|
158 |
# define _STLP_NO_SIGNED_BUILTINS
|
williamr@4
|
159 |
# define _STLP_HAS_NO_NAMESPACES 1
|
williamr@4
|
160 |
# define _STLP_NEED_TYPENAME 1
|
williamr@4
|
161 |
# define _STLP_NEED_EXPLICIT 1
|
williamr@4
|
162 |
# define _STLP_NO_EXCEPTION_SPEC 1
|
williamr@4
|
163 |
# define _STLP_NONTEMPL_BASE_MATCH_BUG 1
|
williamr@4
|
164 |
# define _STLP_NO_ARROW_OPERATOR 1
|
williamr@4
|
165 |
# define _STLP_BASE_MATCH_BUG
|
williamr@4
|
166 |
# define _STLP_BASE_TYPEDEF_OUTSIDE_BUG 1
|
williamr@4
|
167 |
# define _STLP_NO_NEW_STYLE_CASTS 1
|
williamr@4
|
168 |
// # define _STLP_NO_WCHAR_T 1
|
williamr@4
|
169 |
// # define _STLP_LONG_LONG long long
|
williamr@4
|
170 |
# define _STLP_NEED_MUTABLE 1
|
williamr@4
|
171 |
# define _STLP_NO_PARTIAL_SPECIALIZATION_SYNTAX 1
|
williamr@4
|
172 |
# define _STLP_NO_BAD_ALLOC 1
|
williamr@4
|
173 |
# define _STLP_NO_MEMBER_TEMPLATES 1
|
williamr@4
|
174 |
# define _STLP_NO_MEMBER_TEMPLATE_CLASSES 1
|
williamr@4
|
175 |
# define _STLP_NO_MEMBER_TEMPLATE_KEYWORD 1
|
williamr@4
|
176 |
# define _STLP_NO_FRIEND_TEMPLATES 1
|
williamr@4
|
177 |
# define _STLP_NO_QUALIFIED_FRIENDS 1
|
williamr@4
|
178 |
# define _STLP_NO_CLASS_PARTIAL_SPECIALIZATION 1
|
williamr@4
|
179 |
# define _STLP_NO_FUNCTION_TMPL_PARTIAL_ORDER 1
|
williamr@4
|
180 |
# define _STLP_MEMBER_POINTER_PARAM_BUG 1
|
williamr@4
|
181 |
# define _STLP_NON_TYPE_TMPL_PARAM_BUG 1
|
williamr@4
|
182 |
# define _STLP_NO_DEFAULT_NON_TYPE_PARAM 1
|
williamr@4
|
183 |
// # define _STLP_NO_METHOD_SPECIALIZATION 1
|
williamr@4
|
184 |
# define _STLP_NO_EXPLICIT_FUNCTION_TMPL_ARGS 1
|
williamr@4
|
185 |
# define _STLP_NO_EXCEPTION_HEADER 1
|
williamr@4
|
186 |
# define _STLP_DEF_CONST_PLCT_NEW_BUG 1
|
williamr@4
|
187 |
# define _STLP_DEF_CONST_DEF_PARAM_BUG 1
|
williamr@4
|
188 |
# define _STLP_HAS_NO_NEW_C_HEADERS 1
|
williamr@4
|
189 |
// # define _STLP_STATIC_CONST_INIT_BUG 1
|
williamr@4
|
190 |
// # define _STLP_THROW_RETURN_BUG 1
|
williamr@4
|
191 |
// # define _STLP_LINK_TIME_INSTANTIATION 1
|
williamr@4
|
192 |
// # define _STLP_NO_TEMPLATE_CONVERSIONS 1
|
williamr@4
|
193 |
# define _STLP_NO_TYPEINFO 1
|
williamr@4
|
194 |
# define _STLP_WCHAR_T_IS_USHORT 1
|
williamr@4
|
195 |
|
williamr@4
|
196 |
#endif /* cfront */
|