Fixed: Errors on console reallocation in demos in Windows 8+ have been fixed
[ode.git] / build / config-default.h
bloba51e3092f63081767b014ab64c724335cc39b955
1 /* This file was autogenerated by Premake */
2 #ifndef _ODE_CONFIG_H_
3 #define _ODE_CONFIG_H_
6 /******************************************************************
7 * CONFIGURATON SETTINGS - you can change these, and then rebuild
8 * ODE to modify the behavior of the library.
10 * dTRIMESH_ENABLED - enable/disable trimesh support
11 * dTRIMESH_OPCODE - use the OPCODE trimesh engine
12 * dTRIMESH_GIMPACT - use the GIMPACT trimesh engine
13 * Only one trimesh engine should be enabled.
15 * dTRIMESH_16BIT_INDICES (todo: opcode only)
16 * Setup the trimesh engine to use 16 bit
17 * triangle indices. The default is to use
18 * 32 bit indices. Use the dTriIndex type to
19 * detect the correct index size.
21 * dTRIMESH_OPCODE_USE_NEWOLD_TRIMESH_TRIMESH_COLLIDER
22 * Use old implementation of trimesh-trimesh collider
23 * (for backward compatibility only)
25 * dOU_ENABLED
26 * dATOMICS_ENABLED
27 * dTLS_ENABLED
28 * Use generic features of OU library, atomic API
29 * and TLS API respectively.
30 * Generic features and atomic API are always enabled,
31 * unless threading interface support is disabled.
32 * Using TLS for global variables allows calling ODE
33 * collision detection functions from multiple threads.
35 * dBUILTIN_THREADING_IMPL_ENABLED
36 * Include built-in multithreaded threading
37 * implementation (still must be created and assigned
38 * to be used).
40 ******************************************************************/
42 #define dTRIMESH_ENABLED 1
43 #define dTRIMESH_OPCODE 1
44 #define dTRIMESH_16BIT_INDICES 0
46 #define dTRIMESH_OPCODE_USE_OLD_TRIMESH_TRIMESH_COLLIDER 0
48 /* #define dOU_ENABLED 1 */
49 /* #define dATOMICS_ENABLED 1 */
50 /* #define dTLS_ENABLED 1 */
52 /* #define dTHREADING_INTF_DISABLED 1 */
53 /* #define dBUILTIN_THREADING_IMPL_ENABLED 1 */
56 /******************************************************************
57 * SYSTEM SETTINGS - you shouldn't need to change these. If you
58 * run into an issue with these settings, please report it to
59 * the ODE bug tracker at:
60 * http://sf.net/tracker/?group_id=24884&atid=382799
61 ******************************************************************/
63 /* Try to identify the platform */
64 #if defined(_XENON)
65 #define ODE_PLATFORM_XBOX360
66 #elif defined(SN_TARGET_PSP_HW)
67 #define ODE_PLATFORM_PSP
68 #elif defined(SN_TARGET_PS3)
69 #define ODE_PLATFORM_PS3
70 #elif defined(_MSC_VER) || defined(__CYGWIN32__) || defined(__MINGW32__)
71 #define ODE_PLATFORM_WINDOWS
72 #elif defined(__linux__)
73 #define ODE_PLATFORM_LINUX
74 #elif defined(__APPLE__) && defined(__MACH__)
75 #define ODE_PLATFORM_OSX
76 #else
77 #error "Need some help identifying the platform!"
78 #endif
80 /* Additional platform defines used in the code */
81 #if defined(ODE_PLATFORM_WINDOWS) && !defined(WIN32)
82 #define WIN32
83 #endif
85 #if defined(__CYGWIN32__) || defined(__MINGW32__)
86 #define CYGWIN
87 #endif
89 #if defined(ODE_PLATFORM_OSX)
90 #define macintosh
91 #endif
93 #if !defined(ODE_PLATFORM_OSX) && !defined(ODE_PLATFORM_PS3)
94 #include <malloc.h>
95 #endif
97 #if !defined(ODE_PLATFORM_WINDOWS)
98 #include <alloca.h>
99 #endif
102 /* Basic OU functionality is required if either atomic API or TLS support
103 * is enabled. */
104 #if (dATOMICS_ENABLED || dTLS_ENABLED) && !dOU_ENABLED
105 #undef dOU_ENABLED
106 #define dOU_ENABLED 1
107 #endif
110 #include "typedefs.h"
113 #endif