-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.h
More file actions
58 lines (43 loc) · 735 Bytes
/
types.h
File metadata and controls
58 lines (43 loc) · 735 Bytes
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
#ifndef __TYPES_H__
#define __TYPES_H__
#include <stdint.h>
#ifdef __cplusplus
extern "C"
{
#endif
typedef int8_t sint8;
typedef uint8_t uint8;
typedef int16_t sint16;
typedef uint16_t uint16;
typedef int32_t sint32;
typedef uint32_t uint32;
typedef int64_t sint64;
typedef uint64_t uint64;
typedef union {
uint16 uInt;
uint8 uChar[2];
} UInt;
typedef union {
uint32 uLong;
uint16 uInt[2];
uint8 uChar[4];
} ULong;
#ifndef __cplusplus
typedef uint8 bool;
#endif
#ifndef TRUE
#define TRUE (1)
#endif
#ifndef FALSE
#define FALSE (0)
#endif
#ifndef true
#define true TRUE
#endif
#ifndef false
#define false FALSE
#endif
#ifdef __cplusplus
}
#endif
#endif