1 // Copyright (C) 2000  Sean Cavanaugh
2 // This file is licensed under the terms of the Lesser GNU Public License
3 // (see LPGL.txt, or http://www.gnu.org/copyleft/lesser.txt)
4 
5 // AJM GNU
6 #ifdef __GNUC__
7 #define __int64 long long
8 #endif
9 
10 #ifndef BASICTYPES_H__
11 #define BASICTYPES_H__
12 
13 #if _MSC_VER > 1000
14 #pragma once
15 #endif /* _MSC_VER > 1000 */
16 
17 #if defined(_WIN32) || defined(SYSTEM_WIN32)
18 
19 #undef CHAR
20 #undef BYTE
21 #undef INT
22 #undef UINT
23 #undef INT8
24 #undef UINT8
25 #undef INT16
26 #undef UINT16
27 #undef INT32
28 #undef UINT32
29 #undef INT64
30 #undef UINT64
31 typedef char             CHAR;
32 typedef unsigned char    BYTE;
33 typedef signed int       INT;
34 typedef unsigned int     UINT;
35 typedef signed char      INT8;
36 typedef unsigned char    UINT8;
37 typedef signed short     INT16;
38 typedef unsigned short   UINT16;
39 typedef signed int       INT32;
40 typedef unsigned int     UINT32;
41 typedef signed __int64   INT64;
42 typedef unsigned __int64 UINT64;
43 
44 #endif /* SYSTEM_WIN32 */
45 
46 #ifdef SYSTEM_POSIX
47 
48 #undef CHAR
49 #undef BYTE
50 #undef INT
51 #undef UINT
52 #undef INT8
53 #undef UINT8
54 #undef INT16
55 #undef UINT16
56 #undef INT32
57 #undef UINT32
58 #undef INT64
59 #undef UINT64
60 typedef char            CHAR;
61 typedef unsigned char   BYTE;
62 typedef signed int      INT;
63 typedef unsigned int    UINT;
64 typedef signed char     INT8;
65 typedef unsigned char   UINT8;
66 typedef signed short    INT16;
67 typedef unsigned short  UINT16;
68 typedef signed int      INT32;
69 typedef unsigned int    UINT32;
70 /* typedef __int64       INT64; */
71 /* typedef unsigned __int64 UINT64; */
72 
73 #endif /* SYSTEM_POSIX */
74 
75 #endif /* BASICTYPES_H__ */
76