]> de.git.xonotic.org Git - xonotic/xonotic.git/blob - misc/builddeps/dp.linux32/include/ode/odeconfig.h
Update Xolonium font to version 2.4
[xonotic/xonotic.git] / misc / builddeps / dp.linux32 / include / ode / odeconfig.h
1 #ifndef ODECONFIG_H
2 #define ODECONFIG_H
3
4 /* Pull in the standard headers */
5 #include <stddef.h>
6 #include <limits.h>
7 #include <stdio.h>
8 #include <stdlib.h>
9 #include <stdarg.h>
10 #include <math.h>
11 #include <string.h>
12 #include <float.h>
13
14
15 #if defined(ODE_DLL) || defined(ODE_LIB)
16 #define __ODE__
17 #endif
18
19 /* Define a DLL export symbol for those platforms that need it */
20 #if defined(_MSC_VER)
21   #if defined(ODE_DLL)
22     #define ODE_API __declspec(dllexport)
23   #elif !defined(ODE_LIB)
24     #define ODE_DLL_API __declspec(dllimport)
25   #endif
26 #endif
27
28 #if !defined(ODE_API)
29   #define ODE_API
30 #endif
31
32 #if defined(_MSC_VER)
33 #  define ODE_API_DEPRECATED __declspec(deprecated)
34 #elif defined (__GNUC__) && ( (__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 1)) )
35 #  define ODE_API_DEPRECATED __attribute__((__deprecated__))
36 #else
37 #  define ODE_API_DEPRECATED
38 #endif
39
40 /* Well-defined common data types...need to define for 64 bit systems */
41 #if defined(_M_IA64) || defined(__ia64__) || defined(_M_AMD64) || defined(__x86_64__)
42   #define X86_64_SYSTEM   1
43   typedef int             int32;
44   typedef unsigned int    uint32;
45   typedef short           int16;
46   typedef unsigned short  uint16;
47   typedef signed char     int8;
48   typedef unsigned char   uint8;
49 #else
50   typedef int             int32;
51   typedef unsigned int    uint32;
52   typedef short           int16;
53   typedef unsigned short  uint16;
54   typedef signed char     int8;
55   typedef unsigned char   uint8;
56 #endif
57
58 /* Visual C does not define these functions */
59 #if defined(_MSC_VER)
60   #define copysignf(x, y) ((float)_copysign(x, y))
61   #define copysign(x, y) _copysign(x, y)
62   #define nextafterf(x, y) _nextafterf(x, y)
63   #define nextafter(x, y) _nextafter(x, y)
64   #if !defined(_WIN64)
65     #define _ODE__NEXTAFTERF_REQUIRED
66   #endif
67 #endif
68
69
70
71 /* Define the dInfinity macro */
72 #ifdef INFINITY
73   #define dInfinity INFINITY
74 #elif defined(HUGE_VAL)
75   #ifdef dSINGLE
76     #ifdef HUGE_VALF
77       #define dInfinity HUGE_VALF
78     #else
79       #define dInfinity ((float)HUGE_VAL)
80     #endif
81   #else
82     #define dInfinity HUGE_VAL
83   #endif
84 #else
85   #ifdef dSINGLE
86     #define dInfinity ((float)(1.0/0.0))
87   #else
88     #define dInfinity (1.0/0.0)
89   #endif
90 #endif
91
92
93 #endif