summaryrefslogtreecommitdiff
path: root/apps/plugins/xrick/system/basic_types.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/xrick/system/basic_types.h')
-rw-r--r--apps/plugins/xrick/system/basic_types.h48
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
21typedef enum { false, true } bool;
22
23#define inline __inline
24
25typedef unsigned __int8 uint8_t;
26typedef unsigned __int16 uint16_t;
27typedef unsigned __int32 uint32_t;
28typedef __int8 int8_t;
29typedef __int16 int16_t;
30typedef __int32 int32_t;
31
32#else /* ndef _MSC_VER */
33
34#include <stdbool.h>
35#include <stdint.h>
36
37#endif /* _MSC_VER */
38
39typedef uint8_t U8; /* 8 bits unsigned */
40typedef uint16_t U16; /* 16 bits unsigned */
41typedef uint32_t U32; /* 32 bits unsigned */
42typedef int8_t S8; /* 8 bits signed */
43typedef int16_t S16; /* 16 bits signed */
44typedef int32_t S32; /* 32 bits signed */
45
46#endif /* ndef _BASIC_TYPES_H */
47
48/* eof */