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