diff options
author | dan miller | 2007-10-19 05:15:33 +0000 |
---|---|---|
committer | dan miller | 2007-10-19 05:15:33 +0000 |
commit | 79eca25c945a535a7a0325999034bae17da92412 (patch) | |
tree | 40ff433d94859d629aac933d5ec73b382f62ba1a /libraries/ode-0.9/build/config-default.h | |
parent | adding ode source to /libraries (diff) | |
download | opensim-SC_OLD-79eca25c945a535a7a0325999034bae17da92412.zip opensim-SC_OLD-79eca25c945a535a7a0325999034bae17da92412.tar.gz opensim-SC_OLD-79eca25c945a535a7a0325999034bae17da92412.tar.bz2 opensim-SC_OLD-79eca25c945a535a7a0325999034bae17da92412.tar.xz |
resubmitting ode
Diffstat (limited to 'libraries/ode-0.9/build/config-default.h')
-rw-r--r-- | libraries/ode-0.9/build/config-default.h | 176 |
1 files changed, 176 insertions, 0 deletions
diff --git a/libraries/ode-0.9/build/config-default.h b/libraries/ode-0.9/build/config-default.h new file mode 100644 index 0000000..7d64006 --- /dev/null +++ b/libraries/ode-0.9/build/config-default.h | |||
@@ -0,0 +1,176 @@ | |||
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 */ | ||
160 | typedef 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 | ||