Welcome to mirror list, hosted at ThFree Co, Russian Federation.

PlatformDefinitions.h « BulletMultiThreaded « bullet2 « extern - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 16362f4bce3b2a418563b7f810f53116b8f4e7a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#ifndef TYPE_DEFINITIONS_H
#define TYPE_DEFINITIONS_H

///This file provides some platform/compiler checks for common definitions

#ifdef _WIN32

typedef union
{
  unsigned int u;
  void *p;
} addr64;

#define USE_WIN32_THREADING 1

		#if defined(__MINGW32__) || defined(__CYGWIN__) || (defined (_MSC_VER) && _MSC_VER < 1300)
		#else
		#endif //__MINGW32__

		typedef unsigned char     uint8_t;
#ifndef __PHYSICS_COMMON_H__
#ifndef __BT_SKIP_UINT64_H
		typedef unsigned long int uint64_t;
#endif //__BT_SKIP_UINT64_H
		typedef unsigned int      uint32_t;
#endif //__PHYSICS_COMMON_H__
		typedef unsigned short    uint16_t;

		#include <malloc.h>
		#define memalign(alignment, size) malloc(size);
			
#include <string.h> //memcpy

		

		#include <stdio.h>		
		#define spu_printf printf
		
#else
		#include <stdint.h>
		#include <stdlib.h>
		#include <string.h> //for memcpy

#if defined	(__CELLOS_LV2__)
	// Playstation 3 Cell SDK
#include <spu_printf.h>
		
#else
	// posix system

#define USE_PTHREADS    (1)

#ifdef USE_LIBSPE2
#include <stdio.h>		
#define spu_printf printf	
#define DWORD unsigned int
		
			typedef union
			{
			  unsigned long long ull;
			  unsigned int ui[2];
			  void *p;
			} addr64;
		
		
#else

#include <stdio.h>		
#define spu_printf printf	

#endif // USE_LIBSPE2
	
#endif	//__CELLOS_LV2__
	
#endif


/* Included here because we need uint*_t typedefs */
#include "PpuAddressSpace.h"

#endif //TYPE_DEFINITIONS_H