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