1 #ifndef BT_TYPE_DEFINITIONS_H
2 #define BT_TYPE_DEFINITIONS_H
4 ///This file provides some platform/compiler checks for common definitions
5 #include "LinearMath/btScalar.h"
6 #include "LinearMath/btMinMax.h"
8 #ifdef PFX_USE_FREE_VECTORMATH
9 #include "physics_effects/base_level/base/pfx_vectormath_include.win32.h"
10 typedef Vectormath::Aos::Vector3 vmVector3;
11 typedef Vectormath::Aos::Quat vmQuat;
12 typedef Vectormath::Aos::Matrix3 vmMatrix3;
13 typedef Vectormath::Aos::Transform3 vmTransform3;
14 typedef Vectormath::Aos::Point3 vmPoint3;
16 #include "vectormath/vmInclude.h"
17 #endif//PFX_USE_FREE_VECTORMATH
31 #define USE_WIN32_THREADING 1
33 #if defined(__MINGW32__) || defined(__CYGWIN__) || (defined (_MSC_VER) && _MSC_VER < 1300)
37 typedef unsigned char uint8_t;
38 #ifndef __PHYSICS_COMMON_H__
39 #ifndef PFX_USE_FREE_VECTORMATH
40 #ifndef __BT_SKIP_UINT64_H
41 typedef unsigned long int uint64_t;
42 #endif //__BT_SKIP_UINT64_H
43 #endif //PFX_USE_FREE_VECTORMATH
44 typedef unsigned int uint32_t;
45 #endif //__PHYSICS_COMMON_H__
46 typedef unsigned short uint16_t;
49 #define memalign(alignment, size) malloc(size);
51 #include <string.h> //memcpy
56 #define spu_printf printf
61 #include <string.h> //for memcpy
63 #if defined (__CELLOS_LV2__)
64 // Playstation 3 Cell SDK
65 #include <spu_printf.h>
70 #define USE_PTHREADS (1)
74 #define spu_printf printf
75 #define DWORD unsigned int
78 unsigned long long ull;
84 #endif //__CELLOS_LV2__
90 #define printf spu_printf
93 /* Included here because we need uint*_t typedefs */
94 #include "PpuAddressSpace.h"
96 #endif //BT_TYPE_DEFINITIONS_H