-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypedefs.h
67 lines (54 loc) · 1.07 KB
/
typedefs.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
// General type definitions for portability
//
// The following types are usable under both MSVC for Win32 and
// GCC for Atmel
#ifndef TYPEDEFS_H
#define TYPEDEFS_H
#ifndef US_TYPEDEFS
#define US_TYPEDEFS
#ifndef _WINDOWS_
#ifdef __cplusplus
typedef bool BOOL;
#else
typedef unsigned char BOOL;
#endif
#endif
typedef signed long BOOL32;
typedef unsigned char U8 ;
typedef unsigned short U16;
typedef unsigned long U32;
typedef char C8 ;
typedef signed char S8 ;
typedef signed short S16;
typedef signed long S32;
#ifdef __AVR__
typedef unsigned long long U64;
typedef long long S64;
#else
#ifdef __WATCOMC__
typedef unsigned __int64 U64;
typedef signed __int64 S64;
#else
typedef unsigned __int64 U64;
typedef signed __int64 S64;
#endif
#endif
#endif
#ifndef F_TYPEDEFS
#define F_TYPEDEFS
typedef float SINGLE;
typedef double DOUBLE;
#endif
#ifndef YES
#define YES 1
#endif
#ifndef NO
#define NO 0
#endif
#ifndef TRUE
#define TRUE 1
#endif
#ifndef FALSE
#define FALSE 0
#endif
#endif