forked from pete-gordon/planet-hively
-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.h
70 lines (55 loc) · 1.26 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
/* These are normally defined in the Amiga's types library, but are
defined here instead to ensure portability with minimal changes to the
original Amiga source-code
*/
#ifdef __MORPHOS__
#ifndef MOS_EXEC_TYPES_H
#define MOS_EXEC_TYPES_H
#include <exec/types.h>
typedef signed short int16;
typedef unsigned char uint8;
typedef signed char int8;
typedef unsigned long uint32;
typedef signed long int32;
typedef unsigned short uint16;
typedef double float64;
#ifndef CONST
#define CONST const
#endif
#ifndef FALSE
#define FALSE 0
#endif
#ifndef TRUE
#define TRUE 1
#endif
#endif
#else
#ifndef EXEC_TYPES_H
#define EXEC_TYPES_H
typedef unsigned short uint16;
typedef unsigned char uint8;
typedef signed short int16;
typedef signed char int8;
#ifndef __SKYOS__
typedef unsigned long uint32;
typedef signed long int32;
#endif
typedef double float64;
typedef char TEXT;
typedef short BOOL;
typedef long LONG;
typedef unsigned long ULONG;
#define FALSE 0
#define TRUE 1
#define CONST const
#endif
#endif
#ifdef __SURFACE32__
#define PIXEL Uint32
#define BYTESPERPIXEL 4
#define BITSPERPIXEL 32
#else
#define PIXEL Uint16
#define BYTESPERPIXEL 2
#define BITSPERPIXEL 16
#endif