-
Notifications
You must be signed in to change notification settings - Fork 19
/
types.h
55 lines (45 loc) · 1.17 KB
/
types.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*
* Demul
* Copyright (C) 2006 Demul Team
*
* Demul is not free software: you can't redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Demul isn't distributed in the hope that it will be useful,
* and WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
*/
#ifndef __TYPES_H__
#define __TYPES_H__
#ifndef INLINE
#define INLINE __inline
#endif
#ifndef FASTCALL
#define FASTCALL __fastcall
#endif
#ifndef CDECL
#define CDECL __cdecl
#endif
#ifndef STDCALL
#define STDCALL __stdcall
#endif
#if !defined(__BOOL_DEFINED)
typedef unsigned __int8 bool;
#define true 1
#define false 0
#endif
#if _MSC_VER < 1400
#define ARRAYSIZE(x) ((int)(sizeof(x) / sizeof(x[0])))
#endif
typedef __int8 s8;
typedef __int16 s16;
typedef __int32 s32;
typedef __int64 s64;
typedef unsigned __int8 u8;
typedef unsigned __int16 u16;
typedef unsigned __int32 u32;
typedef unsigned __int64 u64;
#endif