diff options
Diffstat (limited to 'apps/plugins/xrick/system/basic_types.h')
-rw-r--r-- | apps/plugins/xrick/system/basic_types.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/apps/plugins/xrick/system/basic_types.h b/apps/plugins/xrick/system/basic_types.h new file mode 100644 index 0000000000..e05fd477f3 --- /dev/null +++ b/apps/plugins/xrick/system/basic_types.h | |||
@@ -0,0 +1,48 @@ | |||
1 | /* | ||
2 | * xrick/system/basic_types.h | ||
3 | * | ||
4 | * Copyright (C) 1998-2002 BigOrno (bigorno@bigorno.net). | ||
5 | * Copyright (C) 2008-2014 Pierluigi Vicinanza. | ||
6 | * All rights reserved. | ||
7 | * | ||
8 | * The use and distribution terms for this software are contained in the file | ||
9 | * named README, which can be found in the root of this distribution. By | ||
10 | * using this software in any fashion, you are agreeing to be bound by the | ||
11 | * terms of this license. | ||
12 | * | ||
13 | * You must not remove this notice, or any other, from this software. | ||
14 | */ | ||
15 | |||
16 | #ifndef _BASIC_TYPES_H | ||
17 | #define _BASIC_TYPES_H | ||
18 | |||
19 | #ifdef _MSC_VER | ||
20 | |||
21 | typedef enum { false, true } bool; | ||
22 | |||
23 | #define inline __inline | ||
24 | |||
25 | typedef unsigned __int8 uint8_t; | ||
26 | typedef unsigned __int16 uint16_t; | ||
27 | typedef unsigned __int32 uint32_t; | ||
28 | typedef __int8 int8_t; | ||
29 | typedef __int16 int16_t; | ||
30 | typedef __int32 int32_t; | ||
31 | |||
32 | #else /* ndef _MSC_VER */ | ||
33 | |||
34 | #include <stdbool.h> | ||
35 | #include <stdint.h> | ||
36 | |||
37 | #endif /* _MSC_VER */ | ||
38 | |||
39 | typedef uint8_t U8; /* 8 bits unsigned */ | ||
40 | typedef uint16_t U16; /* 16 bits unsigned */ | ||
41 | typedef uint32_t U32; /* 32 bits unsigned */ | ||
42 | typedef int8_t S8; /* 8 bits signed */ | ||
43 | typedef int16_t S16; /* 16 bits signed */ | ||
44 | typedef int32_t S32; /* 32 bits signed */ | ||
45 | |||
46 | #endif /* ndef _BASIC_TYPES_H */ | ||
47 | |||
48 | /* eof */ | ||