-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.h
73 lines (57 loc) · 1.08 KB
/
types.h
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
#ifndef _TYPES_H_
#define _TYPES_H_
#ifdef _arch_dreamcast
#include <arch/types.h>
#else
typedef unsigned char uint8;
typedef unsigned short int uint16;
typedef unsigned long int uint32;
typedef signed char int8;
typedef signed short int int16;
typedef signed long int int32;
#endif
// target specific
///////////////////
#ifdef _arch_dreamcast
#ifndef __sh__
#define __sh__
#endif
#else
#ifndef __x86__
#define __x86__
#endif
#endif
// compiler specific
/////////////////////
#ifndef INLINE
#ifdef __x86__
#define INLINE __inline
#else
#define INLINE __inline
#endif
#endif
#ifndef FASTCALL
#ifdef __x86__
#define FASTCALL __fastcall
#else
#define FASTCALL
#endif
#endif
// types definitions
/////////////////////
#ifndef NULL
#define NULL 0
#endif
typedef unsigned char u8;
typedef unsigned short u16;
typedef unsigned int u32;
typedef signed char s8;
typedef signed short s16;
typedef signed int s32;
typedef unsigned char U8;
typedef unsigned short U16;
typedef unsigned int U32;
typedef signed char S8;
typedef signed short S16;
typedef signed int S32;
#endif /* _TYPES_H_ */