aboutsummaryrefslogtreecommitdiff
path: root/backends/gp32/h/defines.h
blob: d842bd1908495827b09cdf60217bfa1230d49d12 (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
/* defines.h */

#ifndef __DEFINES_H__
#define __DEFINES_H__

typedef unsigned char u8;
typedef signed char s8;
typedef unsigned short u16;
typedef short s16;
typedef unsigned int u32;
typedef int s32;

//#define	LITTLE_ENDIAN
/*
typedef union
  {
#ifdef LITTLE_ENDIAN
    struct
      {
        u8 low;
        u8 high;
      } byte;
#else
    struct
      {
        u8 high;
        u8 low;
      } byte;
#endif
    u16 word;
  } word;


typedef union
  {
#ifdef	LITTLE_ENDIAN
    struct
      {
        word low;
        word high;
      } word;
#else
    struct
      {
        word high;
        word low;
      } word;
#endif
    u32	dword;
  } dword;





#ifndef BOOL
#define	BOOL	int
#endif
#ifndef TRUE
#define	TRUE	1
#endif
#ifndef FALSE
#define	FALSE	0
#endif

#ifndef	NULL
#define	NULL	0
#endif
*/
#endif