diff options
Diffstat (limited to 'libraries/ode-0.9/contrib/Mac_CFMCarbon/mac_source/include/ode/config.h')
-rw-r--r-- | libraries/ode-0.9/contrib/Mac_CFMCarbon/mac_source/include/ode/config.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/libraries/ode-0.9/contrib/Mac_CFMCarbon/mac_source/include/ode/config.h b/libraries/ode-0.9/contrib/Mac_CFMCarbon/mac_source/include/ode/config.h new file mode 100644 index 0000000..bb889f9 --- /dev/null +++ b/libraries/ode-0.9/contrib/Mac_CFMCarbon/mac_source/include/ode/config.h | |||
@@ -0,0 +1,52 @@ | |||
1 | /* This file has been manually hacked together for the Mac CFM Carbon build - Frank. */ | ||
2 | |||
3 | #ifndef _ODE_CONFIG_H_ | ||
4 | #define _ODE_CONFIG_H_ | ||
5 | |||
6 | /* standard system headers */ | ||
7 | #include <stdio.h> | ||
8 | #include <stdlib.h> | ||
9 | #include <math.h> | ||
10 | #include <string.h> | ||
11 | #include <stdarg.h> | ||
12 | #include <malloc.h> | ||
13 | #include <alloca.h> | ||
14 | #include <float.h> | ||
15 | |||
16 | #ifdef __cplusplus | ||
17 | extern "C" { | ||
18 | #endif | ||
19 | |||
20 | /* #define PENTIUM 1 -- not a pentium */ | ||
21 | |||
22 | /* integer types (we assume int >= 32 bits) */ | ||
23 | typedef char int8; | ||
24 | typedef unsigned char uint8; | ||
25 | typedef int int32; | ||
26 | typedef unsigned int uint32; | ||
27 | |||
28 | /* an integer type that we can safely cast a pointer to and from without loss of bits. */ | ||
29 | typedef unsigned int intP; | ||
30 | |||
31 | #ifdef PRECISION_DOUBLE | ||
32 | |||
33 | /*select the base floating point type*/ | ||
34 | #define dDOUBLE 1 | ||
35 | |||
36 | /* the floating point infinity */ | ||
37 | #define dInfinity DBL_MAX | ||
38 | |||
39 | #else | ||
40 | |||
41 | /* select the base floating point type */ | ||
42 | #define dSINGLE 1 | ||
43 | |||
44 | /* the floating point infinity */ | ||
45 | #define dInfinity FLT_MAX | ||
46 | |||
47 | #endif | ||
48 | |||
49 | #ifdef __cplusplus | ||
50 | } | ||
51 | #endif | ||
52 | #endif \ No newline at end of file | ||