diff options
Diffstat (limited to 'libraries/ode-0.9/include/ode')
-rw-r--r-- | libraries/ode-0.9/include/ode/config.h | 554 |
1 files changed, 378 insertions, 176 deletions
diff --git a/libraries/ode-0.9/include/ode/config.h b/libraries/ode-0.9/include/ode/config.h index 7d64006..9a74f0e 100644 --- a/libraries/ode-0.9/include/ode/config.h +++ b/libraries/ode-0.9/include/ode/config.h | |||
@@ -1,176 +1,378 @@ | |||
1 | /* This file was autogenerated by Premake */ | 1 | /* include/ode/config.h. Generated from config.h.in by configure. */ |
2 | #ifndef _ODE_CONFIG_H_ | 2 | /* include/ode/config.h.in. Generated from configure.in by autoheader. */ |
3 | #define _ODE_CONFIG_H_ | 3 | |
4 | 4 | ||
5 | 5 | #ifndef ODE_CONFIG_H | |
6 | /****************************************************************** | 6 | #define ODE_CONFIG_H |
7 | * CONFIGURATON SETTINGS - you can change these, and then rebuild | 7 | |
8 | * ODE to modify the behavior of the library. | 8 | |
9 | * | 9 | /* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP |
10 | * dSINGLE/dDOUBLE - force ODE to use single-precision (float) | 10 | systems. This function is required for `alloca.c' support on those systems. |
11 | * or double-precision (double) for numbers. | 11 | */ |
12 | * Only one should be defined. | 12 | /* #undef CRAY_STACKSEG_END */ |
13 | * | 13 | |
14 | * dTRIMESH_ENABLED - enable/disable trimesh support | 14 | /* Define to 1 if using `alloca.c'. */ |
15 | * dTRIMESH_OPCODE - use the OPCODE trimesh engine | 15 | /* #undef C_ALLOCA */ |
16 | * dTRIMESH_GIMPACT - use the GIMPACT trimesh engine | 16 | |
17 | * Only one trimesh engine should be enabled. | 17 | /* Define to 1 if you have `alloca', as a function or macro. */ |
18 | * | 18 | #define HAVE_ALLOCA 1 |
19 | * dUSE_MALLOC_FOR_ALLOCA (experimental)- | 19 | |
20 | * Use malloc() instead of alloca(). Slower, | 20 | /* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix). |
21 | * but allows for larger systems and more | 21 | */ |
22 | * graceful out-of-memory handling. | 22 | #define HAVE_ALLOCA_H 1 |
23 | * | 23 | |
24 | * dTRIMESH_OPCODE_USE_NEW_TRIMESH_TRIMESH_COLLIDER (experimental)- | 24 | /* Use the Apple OpenGL framework. */ |
25 | * Use an alternative trimesh-trimesh collider | 25 | /* #undef HAVE_APPLE_OPENGL_FRAMEWORK */ |
26 | * which should yield better results. | 26 | |
27 | * | 27 | /* Define to 1 if you have the `atan2f' function. */ |
28 | ******************************************************************/ | 28 | #define HAVE_ATAN2F 1 |
29 | 29 | ||
30 | #define dSINGLE | 30 | /* Define to 1 if you have the `copysign' function. */ |
31 | /* #define dDOUBLE */ | 31 | #define HAVE_COPYSIGN 1 |
32 | 32 | ||
33 | #define dTRIMESH_ENABLED 1 | 33 | /* Define to 1 if you have the `copysignf' function. */ |
34 | #define dTRIMESH_OPCODE 1 | 34 | #define HAVE_COPYSIGNF 1 |
35 | 35 | ||
36 | #define dTRIMESH_OPCODE_USE_NEW_TRIMESH_TRIMESH_COLLIDER 0 | 36 | /* Define to 1 if you have the `cosf' function. */ |
37 | 37 | #define HAVE_COSF 1 | |
38 | /* #define dUSE_MALLOC_FOR_ALLOCA */ | 38 | |
39 | 39 | /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */ | |
40 | 40 | /* #undef HAVE_DOPRNT */ | |
41 | /****************************************************************** | 41 | |
42 | * SYSTEM SETTINGS - you shouldn't need to change these. If you | 42 | /* Define to 1 if you have the `fabsf' function. */ |
43 | * run into an issue with these settings, please report it to | 43 | #define HAVE_FABSF 1 |
44 | * the ODE bug tracker at: | 44 | |
45 | * http://sf.net/tracker/?group_id=24884&atid=382799 | 45 | /* Define to 1 if you have the <float.h> header file. */ |
46 | ******************************************************************/ | 46 | #define HAVE_FLOAT_H 1 |
47 | 47 | ||
48 | /* Try to identify the platform */ | 48 | /* Define to 1 if you have the `floor' function. */ |
49 | #if defined(_XENON) | 49 | #define HAVE_FLOOR 1 |
50 | #define ODE_PLATFORM_XBOX360 | 50 | |
51 | #elif defined(SN_TARGET_PSP_HW) | 51 | /* Define to 1 if you have the `fmodf' function. */ |
52 | #define ODE_PLATFORM_PSP | 52 | #define HAVE_FMODF 1 |
53 | #elif defined(SN_TARGET_PS3) | 53 | |
54 | #define ODE_PLATFORM_PS3 | 54 | /* Define to 1 if you have the `gettimeofday' function. */ |
55 | #elif defined(_MSC_VER) || defined(__CYGWIN32__) || defined(__MINGW32__) | 55 | #define HAVE_GETTIMEOFDAY 1 |
56 | #define ODE_PLATFORM_WINDOWS | 56 | |
57 | #elif defined(__linux__) | 57 | /* Define to 1 if you have the <GL/glext.h> header file. */ |
58 | #define ODE_PLATFORM_LINUX | 58 | #define HAVE_GL_GLEXT_H 1 |
59 | #elif defined(__APPLE__) && defined(__MACH__) | 59 | |
60 | #define ODE_PLATFORM_OSX | 60 | /* Define to 1 if you have the <GL/glu.h> header file. */ |
61 | #else | 61 | #define HAVE_GL_GLU_H 1 |
62 | #error "Need some help identifying the platform!" | 62 | |
63 | #endif | 63 | /* Define to 1 if you have the <GL/gl.h> header file. */ |
64 | 64 | #define HAVE_GL_GL_H 1 | |
65 | /* Additional platform defines used in the code */ | 65 | |
66 | #if defined(ODE_PLATFORM_WINDOWS) && !defined(WIN32) | 66 | /* Define to 1 if you have the <ieeefp.h> header file. */ |
67 | #define WIN32 | 67 | /* #undef HAVE_IEEEFP_H */ |
68 | #endif | 68 | |
69 | 69 | /* Define to 1 if you have the <inttypes.h> header file. */ | |
70 | #if defined(__CYGWIN32__) || defined(__MINGW32__) | 70 | #define HAVE_INTTYPES_H 1 |
71 | #define CYGWIN | 71 | |
72 | #endif | 72 | /* Define to 1 if you have the `isnan' function. */ |
73 | 73 | #define HAVE_ISNAN 1 | |
74 | #if defined(ODE_PLATFORM_OSX) | 74 | |
75 | #define macintosh | 75 | /* Define to 1 if you have the `isnanf' function. */ |
76 | #endif | 76 | #define HAVE_ISNANF 1 |
77 | 77 | ||
78 | 78 | /* Define to 1 if your system has a GNU libc compatible `malloc' function, and | |
79 | /* Define a DLL export symbol for those platforms that need it */ | 79 | to 0 otherwise. */ |
80 | #if defined(ODE_PLATFORM_WINDOWS) | 80 | #define HAVE_MALLOC 1 |
81 | #if defined(ODE_DLL) | 81 | |
82 | #define ODE_API __declspec(dllexport) | 82 | /* Define to 1 if you have the <malloc.h> header file. */ |
83 | #elif !defined(ODE_LIB) | 83 | #define HAVE_MALLOC_H 1 |
84 | #define ODE_DLL_API __declspec(dllimport) | 84 | |
85 | #endif | 85 | /* Define to 1 if you have the <math.h> header file. */ |
86 | #endif | 86 | #define HAVE_MATH_H 1 |
87 | 87 | ||
88 | #if !defined(ODE_API) | 88 | /* Define to 1 if you have the `memmove' function. */ |
89 | #define ODE_API | 89 | #define HAVE_MEMMOVE 1 |
90 | #endif | 90 | |
91 | 91 | /* Define to 1 if you have the <memory.h> header file. */ | |
92 | 92 | #define HAVE_MEMORY_H 1 | |
93 | /* Pull in the standard headers */ | 93 | |
94 | #include <stdio.h> | 94 | /* Define to 1 if you have the `memset' function. */ |
95 | #include <stdlib.h> | 95 | #define HAVE_MEMSET 1 |
96 | #include <stdarg.h> | 96 | |
97 | #include <math.h> | 97 | /* Define to 1 if libc includes obstacks. */ |
98 | #include <string.h> | 98 | #define HAVE_OBSTACK 1 |
99 | #include <float.h> | 99 | |
100 | 100 | /* Define to 1 if your system has a GNU libc compatible `realloc' function, | |
101 | #if !defined(ODE_PLATFORM_PS3) | 101 | and to 0 otherwise. */ |
102 | #include <malloc.h> | 102 | #define HAVE_REALLOC 1 |
103 | #endif | 103 | |
104 | 104 | /* Define to 1 if you have the `select' function. */ | |
105 | #if !defined(ODE_PLATFORM_WINDOWS) | 105 | #define HAVE_SELECT 1 |
106 | #include <alloca.h> | 106 | |
107 | #endif | 107 | /* Define to 1 if you have the `sinf' function. */ |
108 | 108 | #define HAVE_SINF 1 | |
109 | 109 | ||
110 | /* Visual C does not define these functions */ | 110 | /* Define to 1 if you have the `snprintf' function. */ |
111 | #if defined(_MSC_VER) | 111 | #define HAVE_SNPRINTF 1 |
112 | #define copysignf _copysign | 112 | |
113 | #define copysign _copysign | 113 | /* Define to 1 if you have the `sqrt' function. */ |
114 | #endif | 114 | #define HAVE_SQRT 1 |
115 | 115 | ||
116 | 116 | /* Define to 1 if you have the `sqrtf' function. */ | |
117 | /* Define a value for infinity */ | 117 | #define HAVE_SQRTF 1 |
118 | #if defined(HUGE_VALF) | 118 | |
119 | #define ODE_INFINITY4 HUGE_VALF | 119 | /* Use SSE Optimizations */ |
120 | #define ODE_INFINITY8 HUGE_VAL | 120 | /* #undef HAVE_SSE */ |
121 | #elif defined(FLT_MAX) | 121 | |
122 | #define ODE_INFINITY4 FLT_MAX | 122 | /* Define to 1 if you have the <stdarg.h> header file. */ |
123 | #define ODE_INFINITY8 DBL_MAX | 123 | #define HAVE_STDARG_H 1 |
124 | #else | 124 | |
125 | static union { unsigned char __c[4]; float __f; } __ode_huge_valf = {{0,0,0x80,0x7f}}; | 125 | /* Define to 1 if stdbool.h conforms to C99. */ |
126 | static union { unsigned char __c[8]; double __d; } __ode_huge_val = {{0,0,0,0,0,0,0xf0,0x7f}}; | 126 | #define HAVE_STDBOOL_H 1 |
127 | #define ODE_INFINITY4 (__ode_huge_valf.__f) | 127 | |
128 | #define ODE_INFINITY8 (__ode_huge_val.__d) | 128 | /* Define to 1 if you have the <stdint.h> header file. */ |
129 | #endif | 129 | #define HAVE_STDINT_H 1 |
130 | 130 | ||
131 | #ifdef dSINGLE | 131 | /* Define to 1 if you have the <stdio.h> header file. */ |
132 | #define dInfinity ODE_INFINITY4 | 132 | #define HAVE_STDIO_H 1 |
133 | #define dEpsilon FLT_EPSILON | 133 | |
134 | #else | 134 | /* Define to 1 if you have the <stdlib.h> header file. */ |
135 | #define dInfinity ODE_INFINITY8 | 135 | #define HAVE_STDLIB_H 1 |
136 | #define dEpsilon DBL_EPSILON | 136 | |
137 | #endif | 137 | /* Define to 1 if you have the <strings.h> header file. */ |
138 | 138 | #define HAVE_STRINGS_H 1 | |
139 | 139 | ||
140 | /* Well-defined common data types...need to define for 64 bit systems */ | 140 | /* Define to 1 if you have the <string.h> header file. */ |
141 | #if defined(_M_IA64) || defined(__ia64__) || defined(_M_AMD64) || defined(__x86_64__) | 141 | #define HAVE_STRING_H 1 |
142 | #define X86_64_SYSTEM 1 | 142 | |
143 | typedef int int32; | 143 | /* Define to 1 if you have the <sys/select.h> header file. */ |
144 | typedef unsigned int uint32; | 144 | #define HAVE_SYS_SELECT_H 1 |
145 | typedef short int16; | 145 | |
146 | typedef unsigned short uint16; | 146 | /* Define to 1 if you have the <sys/socket.h> header file. */ |
147 | typedef char int8; | 147 | #define HAVE_SYS_SOCKET_H 1 |
148 | typedef unsigned char uint8; | 148 | |
149 | #else | 149 | /* Define to 1 if you have the <sys/stat.h> header file. */ |
150 | typedef int int32; | 150 | #define HAVE_SYS_STAT_H 1 |
151 | typedef unsigned int uint32; | 151 | |
152 | typedef short int16; | 152 | /* Define to 1 if you have the <sys/time.h> header file. */ |
153 | typedef unsigned short uint16; | 153 | #define HAVE_SYS_TIME_H 1 |
154 | typedef char int8; | 154 | |
155 | typedef unsigned char uint8; | 155 | /* Define to 1 if you have the <sys/types.h> header file. */ |
156 | #endif | 156 | #define HAVE_SYS_TYPES_H 1 |
157 | 157 | ||
158 | /* An integer type that can be safely cast to a pointer. This definition | 158 | /* Define to 1 if you have the <time.h> header file. */ |
159 | * should be safe even on 64-bit systems */ | 159 | #define HAVE_TIME_H 1 |
160 | typedef size_t intP; | 160 | |
161 | 161 | /* Define to 1 if you have the <unistd.h> header file. */ | |
162 | 162 | #define HAVE_UNISTD_H 1 | |
163 | /* The efficient alignment. most platforms align data structures to some | 163 | |
164 | * number of bytes, but this is not always the most efficient alignment. | 164 | /* Define to 1 if you have the <values.h> header file. */ |
165 | * for example, many x86 compilers align to 4 bytes, but on a pentium it is | 165 | #define HAVE_VALUES_H 1 |
166 | * important to align doubles to 8 byte boundaries (for speed), and the 4 | 166 | |
167 | * floats in a SIMD register to 16 byte boundaries. many other platforms have | 167 | /* Define to 1 if you have the `vprintf' function. */ |
168 | * similar behavior. setting a larger alignment can waste a (very) small | 168 | #define HAVE_VPRINTF 1 |
169 | * amount of memory. NOTE: this number must be a power of two. */ | 169 | |
170 | #define EFFICIENT_ALIGNMENT 16 | 170 | /* Define to 1 if you have the `vsnprintf' function. */ |
171 | 171 | #define HAVE_VSNPRINTF 1 | |
172 | 172 | ||
173 | /* Define this if your system supports anonymous memory maps (linux does) */ | 173 | /* Define to 1 if the system has the type `_Bool'. */ |
174 | #define MMAP_ANONYMOUS | 174 | #define HAVE__BOOL 1 |
175 | 175 | ||
176 | #endif | 176 | /* Define to 1 if you have the `_isnan' function. */ |
177 | /* #undef HAVE__ISNAN */ | ||
178 | |||
179 | /* Define to 1 if you have the `_isnanf' function. */ | ||
180 | /* #undef HAVE__ISNANF */ | ||
181 | |||
182 | /* Define to 1 if you have the `__isnan' function. */ | ||
183 | #define HAVE___ISNAN 1 | ||
184 | |||
185 | /* Define to 1 if you have the `__isnanf' function. */ | ||
186 | #define HAVE___ISNANF 1 | ||
187 | |||
188 | /* Name of package */ | ||
189 | #define PACKAGE "ODE" | ||
190 | |||
191 | /* Define to the address where bug reports for this package should be sent. */ | ||
192 | #define PACKAGE_BUGREPORT "ode@ode.org" | ||
193 | |||
194 | /* Define to the full name of this package. */ | ||
195 | #define PACKAGE_NAME "ODE" | ||
196 | |||
197 | /* Define to the full name and version of this package. */ | ||
198 | #define PACKAGE_STRING "ODE 0.9.0" | ||
199 | |||
200 | /* Define to the one symbol short name of this package. */ | ||
201 | #define PACKAGE_TARNAME "ode" | ||
202 | |||
203 | /* Define to the version of this package. */ | ||
204 | #define PACKAGE_VERSION "0.9.0" | ||
205 | |||
206 | /* is this a pentium on a gcc-based platform? */ | ||
207 | #define PENTIUM 1 | ||
208 | |||
209 | /* Define to the type of arg 1 for `select'. */ | ||
210 | #define SELECT_TYPE_ARG1 int | ||
211 | |||
212 | /* Define to the type of args 2, 3 and 4 for `select'. */ | ||
213 | #define SELECT_TYPE_ARG234 (fd_set *) | ||
214 | |||
215 | /* Define to the type of arg 5 for `select'. */ | ||
216 | #define SELECT_TYPE_ARG5 (struct timeval *) | ||
217 | |||
218 | /* The size of `char', as computed by sizeof. */ | ||
219 | #define SIZEOF_CHAR 1 | ||
220 | |||
221 | /* The size of `int', as computed by sizeof. */ | ||
222 | #define SIZEOF_INT 4 | ||
223 | |||
224 | /* The size of `long int', as computed by sizeof. */ | ||
225 | #define SIZEOF_LONG_INT 4 | ||
226 | |||
227 | /* The size of `short', as computed by sizeof. */ | ||
228 | #define SIZEOF_SHORT 2 | ||
229 | |||
230 | /* The size of `void*', as computed by sizeof. */ | ||
231 | #define SIZEOF_VOIDP 4 | ||
232 | |||
233 | /* The extension for shared libraries. */ | ||
234 | #define SO_EXT ".so" | ||
235 | |||
236 | /* If using the C implementation of alloca, define if you know the | ||
237 | direction of stack growth for your system; otherwise it will be | ||
238 | automatically deduced at runtime. | ||
239 | STACK_DIRECTION > 0 => grows toward higher addresses | ||
240 | STACK_DIRECTION < 0 => grows toward lower addresses | ||
241 | STACK_DIRECTION = 0 => direction of growth unknown */ | ||
242 | /* #undef STACK_DIRECTION */ | ||
243 | |||
244 | /* Define to 1 if you have the ANSI C header files. */ | ||
245 | #define STDC_HEADERS 1 | ||
246 | |||
247 | /* Version number of package */ | ||
248 | #define VERSION "0.9.0" | ||
249 | |||
250 | /* Define to 1 if your processor stores words with the most significant byte | ||
251 | first (like Motorola and SPARC, unlike Intel and VAX). */ | ||
252 | /* #undef WORDS_BIGENDIAN */ | ||
253 | |||
254 | /* is this a X86_64 system on a gcc-based platform? */ | ||
255 | /* #undef X86_64_SYSTEM */ | ||
256 | |||
257 | /* Define to 1 if the X Window System is missing or not being used. */ | ||
258 | /* #undef X_DISPLAY_MISSING */ | ||
259 | |||
260 | /* Define to empty if `const' does not conform to ANSI C. */ | ||
261 | /* #undef const */ | ||
262 | |||
263 | /* Use double precision */ | ||
264 | /* #undef dDOUBLE */ | ||
265 | |||
266 | /* dEpsilon Constant */ | ||
267 | #define dEpsilon FLT_EPSILON | ||
268 | |||
269 | /* Use gyroscopic terms */ | ||
270 | #define dGYROSCOPIC | ||
271 | |||
272 | /* dInfinity Constant */ | ||
273 | #define dInfinity FLT_MAX | ||
274 | |||
275 | /* Disable debug output */ | ||
276 | /* #undef dNODEBUG */ | ||
277 | |||
278 | /* Use single precision */ | ||
279 | #define dSINGLE | ||
280 | |||
281 | /* Define to `__inline__' or `__inline' if that's what the C compiler | ||
282 | calls it, or to nothing if 'inline' is not supported under any name. */ | ||
283 | #ifndef __cplusplus | ||
284 | /* #undef inline */ | ||
285 | #endif | ||
286 | |||
287 | /* Define to rpl_malloc if the replacement function should be used. */ | ||
288 | /* #undef malloc */ | ||
289 | |||
290 | /* Define to rpl_realloc if the replacement function should be used. */ | ||
291 | /* #undef realloc */ | ||
292 | |||
293 | /* Define to `unsigned int' if <sys/types.h> does not define. */ | ||
294 | /* #undef size_t */ | ||
295 | |||
296 | /* Define to empty if the keyword `volatile' does not work. Warning: valid | ||
297 | code using `volatile' can become incorrect without. Disable with care. */ | ||
298 | /* #undef volatile */ | ||
299 | |||
300 | |||
301 | |||
302 | #ifdef HAVE_ALLOCA_H | ||
303 | #include <alloca.h> | ||
304 | #endif | ||
305 | #if defined(HAVE_IEEEFP_H) && !defined(__CYGWIN__) | ||
306 | // This header creates conflicts with math.h in Cygwin. | ||
307 | #include <ieeefp.h> | ||
308 | #endif | ||
309 | #ifdef HAVE_STDIO_H | ||
310 | #include <stdio.h> | ||
311 | #endif | ||
312 | #ifdef HAVE_STDLIB_H | ||
313 | #include <stdlib.h> | ||
314 | #endif | ||
315 | #ifdef HAVE_MATH_H | ||
316 | #include <math.h> | ||
317 | #endif | ||
318 | #ifdef HAVE_STRING_H | ||
319 | #include <string.h> | ||
320 | #endif | ||
321 | #ifdef HAVE_STDARG_H | ||
322 | #include <stdarg.h> | ||
323 | #endif | ||
324 | #ifdef HAVE_MALLOC_H | ||
325 | #include <malloc.h> | ||
326 | #endif | ||
327 | #ifdef HAVE_VALUES_H | ||
328 | #include <values.h> | ||
329 | #endif | ||
330 | #ifdef HAVE_FLOAT_H | ||
331 | #include <float.h> | ||
332 | #endif | ||
333 | #if SIZEOF_CHAR == 1 | ||
334 | typedef char int8; | ||
335 | typedef unsigned char uint8; | ||
336 | #else | ||
337 | #error "expecting sizeof(char) == 1" | ||
338 | #endif | ||
339 | #if SIZEOF_SHORT == 2 | ||
340 | typedef short int16; | ||
341 | typedef unsigned short uint16; | ||
342 | #else | ||
343 | #error "can not find 2 byte integer type" | ||
344 | #endif | ||
345 | /* integer types (we assume int >= 32 bits) */ | ||
346 | #if SIZEOF_INT == 4 | ||
347 | typedef short int32; | ||
348 | typedef unsigned short uint32; | ||
349 | #else | ||
350 | #error "can not find 4 byte integer type" | ||
351 | #endif | ||
352 | /* an integer type that we can safely cast a pointer to and | ||
353 | * from without loss of bits. | ||
354 | */ | ||
355 | #if SIZEOF_SHORT == SIZEOF_VOIDP | ||
356 | typedef unsigned short intP; | ||
357 | #elif SIZEOF_INT == SIZEOF_VOIDP | ||
358 | typedef unsigned int intP; | ||
359 | #elif SIZEOF_LONG_INT == SIZEOF_VOIDP | ||
360 | typedef unsigned long int intP; | ||
361 | #endif | ||
362 | |||
363 | /* | ||
364 | Handle Windows DLL odities | ||
365 | Its easier to export all symbols using the -shared flag | ||
366 | for MinGW than differentiating with declspec, | ||
367 | so only do it for MSVC | ||
368 | */ | ||
369 | #if defined(ODE_DLL) && defined(WIN32) && defined(_MSC_VER) | ||
370 | #define ODE_API __declspec( dllexport ) | ||
371 | #elif !defined(ODE_DLL) && defined(WIN32) && defined(MSC_VER) | ||
372 | #define ODE_API __declspec( dllimport ) | ||
373 | #else | ||
374 | #define ODE_API | ||
375 | #endif | ||
376 | |||
377 | #endif /* #define ODE_CONFIG_H */ | ||
378 | |||