fix gmediaserver compile
[openwrt/svn-archive/archive.git] / libs / ustl / files / config.h
1 // config.h
2 //
3 // Autogenerated from config.h.in by bsconf.
4 //
5
6 #ifndef CONFIG_H_01E33670634DAAC779EE5FF41CCBB36F
7 #define CONFIG_H_01E33670634DAAC779EE5FF41CCBB36F
8
9 // Define to the one symbol short name of this package.
10 #define USTL_NAME "ustl"
11 // Define to the full name and version of this package.
12 #define USTL_STRING "ustl 0.8"
13 // Define to the version of this package.
14 #define USTL_VERSION 0x080
15 // Define to the address where bug reports for this package should be sent.
16 #define USTL_BUGREPORT "Mike Sharov <msharov@users.sourceforge.net>"
17
18 /// Define to 1 if you want stream operations to throw exceptions on
19 /// insufficient data or insufficient space. All these errors should
20 /// be preventable in output code; the input code should verify the
21 /// data in a separate step. It slows down stream operations a lot,
22 /// but it's your call. By default only debug builds throw.
23 ///
24 #undef WANT_STREAM_BOUNDS_CHECKING
25
26 #if !defined(WANT_STREAM_BOUNDS_CHECKING) && !defined(NDEBUG)
27 #define WANT_STREAM_BOUNDS_CHECKING 1
28 #endif
29
30 /// Define to 1 if you want to build without libstdc++
31 #define WITHOUT_LIBSTDCPP 1
32
33 /// Define to 1 if you don't want the standard streams.
34 /// You will not be able to run bvt tests if you do this.
35 ///
36 #undef WITHOUT_CIN_COUT_CERR
37
38 /// Define GNU extensions if unavailable.
39 #ifndef __GNUC__
40 /// GCC (and some other compilers) define '__attribute__'; ustl is using this
41 /// macro to alert the compiler to flag inconsistencies in printf/scanf-like
42 /// function calls. Just in case '__attribute__' isn't defined, make a dummy.
43 ///
44 #ifndef __attribute__
45 #define __attribute__(p)
46 #endif
47 #endif
48 #if defined(__GNUC__) && (__GNUC__ >= 4)
49 #define DLL_EXPORT __attribute__((visibility("default")))
50 #define DLL_LOCAL __attribute__((visibility("hidden")))
51 #else
52 #define DLL_EXPORT
53 #define DLL_LOCAL
54 #endif
55 #if defined(__GNUC__) && (__GNUC__ >= 3) && defined(__i386__)
56 /// GCC 3+ supports the prefetch directive, which some CPUs use to improve caching
57 #define prefetch(p,rw,loc) __builtin_prefetch(p,rw,loc)
58 #else
59 #define prefetch(p,rw,loc)
60 #endif
61 #if !defined(__GNUC__) || (__GNUC__ < 3)
62 /// __alignof__ returns the recommended alignment for the type
63 #define __alignof__(v) min(sizeof(v), sizeof(void*))
64 #endif
65
66 /// Define to 1 if you have the `atexit' function.
67 #define HAVE_ATEXIT 1
68
69 /// Define to 1 if you have the <assert.h> header file.
70 #define HAVE_ASSERT_H 1
71
72 /// Define to 1 if you have the <ctype.h> header file.
73 #define HAVE_CTYPE_H 1
74
75 /// Define to 1 if you have the <errno.h> header file.
76 #define HAVE_ERRNO_H 1
77
78 /// Define to 1 if you have the <fcntl.h> header file.
79 #define HAVE_FCNTL_H 1
80
81 /// Define to 1 if you have the <float.h> header file.
82 #define HAVE_FLOAT_H 1
83
84 /// Define to 1 if you have the <inttypes.h> header file.
85 #define HAVE_INTTYPES_H 1
86
87 /// Define to 1 if you have the <limits.h> header file.
88 #define HAVE_LIMITS_H 1
89
90 /// Define to 1 if you have the <locale.h> header file.
91 #define HAVE_LOCALE_H 1
92
93 /// Define to 1 if your system has a working `malloc' function.
94 #define HAVE_MALLOC 1
95
96 // Define to 1 if you have the <malloc.h> header file.
97 #define HAVE_MALLOC_H 1
98
99 // Define to 1 if you have the <alloca.h> header file.
100 #define HAVE_ALLOCA_H 1
101
102 // Define to 1 if you have the `memchr' function.
103 #define HAVE_MEMCHR 1
104
105 // Define to 1 if you have the `memmove' function.
106 #define HAVE_MEMMOVE 1
107
108 // Define to 1 if you have the <memory.h> header file.
109 #define HAVE_MEMORY_H 1
110
111 // Define to 1 if you have the `memset' function.
112 #define HAVE_MEMSET 1
113
114 // Define to 1 if the system has the type `ptrdiff_t'.
115 #define HAVE_PTRDIFF_T 1
116
117 // Define to 1 if you have the <signal.h> header file.
118 #define HAVE_SIGNAL_H 1
119
120 // Define to 1 if you have the __va_copy function
121 #define HAVE_VA_COPY 1
122
123 // Define to 1 if `stat' has the bug that it succeeds when given the
124 // zero-length file name argument.
125 /* #undef HAVE_STAT_EMPTY_STRING_BUG */
126
127 // Define to 1 if you have the <stdarg.h> header file.
128 #define HAVE_STDARG_H 1
129
130 // Define to 1 if you have the <stddef.h> header file.
131 #define HAVE_STDDEF_H 1
132
133 // Define to 1 if you have the <stdint.h> header file.
134 #define HAVE_STDINT_H 1
135
136 // Define to 1 if you have the <stdio.h> header file.
137 #define HAVE_STDIO_H 1
138
139 // Define to 1 if you have the <stdlib.h> header file.
140 #define HAVE_STDLIB_H 1
141
142 // Define to 1 if you have the `strerror' function.
143 #define HAVE_STRERROR 1
144
145 // Define to 1 if you have the <strings.h> header file.
146 #define HAVE_STRINGS_H 1
147
148 // Define to 1 if you have the <string.h> header file.
149 #define HAVE_STRING_H 1
150
151 // Define to 1 if you have the `strrchr' function.
152 #define HAVE_STRRCHR 1
153
154 // Define to 1 if you have the `strsignal' function.
155 #define HAVE_STRSIGNAL 1
156
157 // Define to 1 if you have the `strtol' function.
158 #define HAVE_STRTOL 1
159
160 // Define to 1 if you have the <sys/stat.h> header file.
161 #define HAVE_SYS_STAT_H 1
162
163 // Define to 1 if you have the <sys/types.h> header file.
164 #define HAVE_SYS_TYPES_H 1
165
166 // Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible.
167 #define HAVE_SYS_WAIT_H 1
168
169 // Define to 1 if you have the <time.h> header file.
170 #define HAVE_TIME_H 1
171
172 // Define to 1 if you have the <unistd.h> header file.
173 #define HAVE_UNISTD_H 1
174
175 // Define to 1 if you have the <math.h> header file.
176 #define HAVE_MATH_H 1
177
178 // Define to 1 if you have the rintf function. Will use rint otherwise.
179 #undef HAVE_RINTF
180
181 // STDC_HEADERS is defined to 1 on sane systems.
182 #if defined(HAVE_ASSERT_H) && defined(HAVE_CTYPE_H) &&\
183 defined(HAVE_ERRNO_H) && defined(HAVE_FLOAT_H) &&\
184 defined(HAVE_LIMITS_H) && defined(HAVE_LOCALE_H) &&\
185 defined(HAVE_MATH_H) && defined(HAVE_SIGNAL_H) &&\
186 defined(HAVE_STDARG_H) && defined(HAVE_STDDEF_H) &&\
187 defined(HAVE_STDIO_H) && defined(HAVE_STDLIB_H) &&\
188 defined(HAVE_STRING_H) && defined(HAVE_TIME_H)
189 #define STDC_HEADERS 1
190 #endif
191
192 // STDC_HEADERS is defined to 1 on unix systems.
193 #if defined(HAVE_FCNTL_H) && defined(HAVE_SYS_STAT_H) && defined(HAVE_UNISTD_H)
194 #define STDUNIX_HEADERS 1
195 #endif
196
197 // Define to 1 if you have the <byteswap.h> header file.
198 #if (__GNUC__ >= 3) // gcc 2.95 somehow doesn't recognize 'asm volatile' in libc byteswap.h
199 #define HAVE_BYTESWAP_H 1
200 #endif
201
202 // Define to 1 if `lstat' dereferences a symlink specified with a trailing slash.
203 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
204
205 // Define to 1 if your compiler treats char as a separate type along with
206 // signed char and unsigned char. This will create overloads for char.
207 #define HAVE_THREE_CHAR_TYPES 1
208
209 // Define as the return type of signal handlers (`int' or `void').
210 #define RETSIGTYPE void
211
212 // Define to 1 if you have 64 bit types available
213 #define HAVE_INT64_T 1
214
215 // Define to 1 if you have the long long type
216 #define HAVE_LONG_LONG 1
217
218 // Define to 1 if you want unrolled specializations for fill and copy
219 #undef WANT_UNROLLED_COPY
220
221 // Define to 1 if you want to use MMX/SSE/3dNow! processor instructions
222 #undef WANT_MMX
223
224 // Define to byte sizes of types
225 #define SIZE_OF_CHAR 1
226 #define SIZE_OF_SHORT 2
227 #define SIZE_OF_INT 4
228 #define SIZE_OF_LONG 4
229 #define SIZE_OF_LONG_LONG 8
230 #define SIZE_OF_POINTER 4
231 #define SIZE_OF_SIZE_T 4
232 #define SIZE_OF_BOOL SIZE_OF_CHAR
233 #undef SIZE_T_IS_LONG
234
235 // Byte order macros, converted in utypes.h
236 #define USTL_LITTLE_ENDIAN 4321
237 #define USTL_BIG_ENDIAN 1234
238 #define USTL_BYTE_ORDER USTL_LITTLE_ENDIAN
239
240 // Extended CPU capabilities
241 #define CPU_HAS_FPU 1
242 #define CPU_HAS_EXT_DEBUG 1
243 #define CPU_HAS_TIMESTAMPC 1
244 #define CPU_HAS_MSR 1
245 #define CPU_HAS_CMPXCHG8 1
246 #define CPU_HAS_APIC 1
247 #define CPU_HAS_SYSCALL 1
248 #define CPU_HAS_MTRR 1
249 #define CPU_HAS_CMOV 1
250 #define CPU_HAS_FCMOV 1
251 #if WANT_MMX
252 #undef CPU_HAS_MMX 1
253 #undef CPU_HAS_FXSAVE
254 #undef CPU_HAS_SSE 1
255 #undef CPU_HAS_SSE2 1
256 #undef CPU_HAS_SSE3
257 #undef CPU_HAS_EXT_3DNOW
258 #undef CPU_HAS_3DNOW
259 #endif
260
261 // GCC vector extensions
262 #if defined(CPU_HAS_MMX) || defined(CPU_HAS_SSE)
263 #undef HAVE_VECTOR_EXTENSIONS
264 #endif
265
266 #if CPU_HAS_SSE && defined(__GNUC__)
267 #define __sse_align __attribute__((aligned(16)))
268 #else
269 #define __sse_align
270 #endif
271
272 // Define to empty if `const' does not conform to ANSI C.
273 /* #define const */
274
275 // Define as `__inline' if that's what the C compiler calls it, or to nothing
276 // if it is not supported.
277 /* #define inline __inline */
278
279 // Define to `long' if <sys/types.h> does not define.
280 /* typedef long off_t; */
281
282 // Define to `unsigned' if <sys/types.h> does not define.
283 /* typedef long size_t; */
284
285 #endif // CONFIG_H_01E33670634DAAC779EE5FF41CCBB36F
286