]> Shamusworld >> Repos - virtualjaguar/blob - src/include/types.h
Virtual Jaguar GCC/SDL v1.0.3 import.
[virtualjaguar] / src / include / types.h
1 // GCC/SDL port by Niels Wagenaar (Linux/WIN32) and Caz (BeOS)
2 // Removal of unsafe macros and addition of typdefs by James L. Hammons
3 //
4
5 #ifndef __TYPES_H__
6 #define __TYPES_H__
7
8 #ifdef __PORT__
9 #include <string.h>
10 typedef unsigned char   BYTE;
11 typedef unsigned short  WORD;
12 typedef unsigned long   DWORD;
13 #ifdef __GCCUNIX__
14 typedef long long               __int64;                // Could probably remove this crap with some judicious pruning
15 #endif  // #ifdef __GCCUNIX__
16 typedef int                             HWND;
17 #else
18 #include <windows.h>
19 #endif  // #ifdef __PORT__
20
21 // This is only good on certain intel 32-bit platforms...
22 // You may need to tweak to suit your specific platform.
23
24 typedef unsigned char           UINT8;
25 typedef signed char                     INT8;
26 typedef unsigned short          UINT16;
27 typedef signed short            INT16;
28 typedef unsigned long           UINT32;
29 typedef signed long                     INT32;
30 typedef unsigned long long      UINT64;
31 typedef signed long long        INT64;
32
33 typedef UINT8   uint8;
34 typedef INT8    int8;
35 typedef UINT16  uint16;
36 typedef INT16   int16;
37 typedef UINT32  uint32;
38 typedef INT32   int32;
39 typedef UINT64  uint64;
40 typedef INT64   int64;
41
42 #endif  // #ifndef __TYPES_H__