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