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