aboutsummaryrefslogtreecommitdiff
path: root/desktop/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/types.h')
-rwxr-xr-xdesktop/types.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/desktop/types.h b/desktop/types.h
new file mode 100755
index 0000000..da462d4
--- /dev/null
+++ b/desktop/types.h
@@ -0,0 +1,27 @@
1#pragma once
2
3#include <stdint.h>
4
5/*
6File: Types
7*/
8
9#if defined(__GNUC__) || defined(__GNUG__) //Compiling with GNU C/C++ compiler
10 typedef __INT8_TYPE__ I8;
11 typedef __INT16_TYPE__ I16;
12 typedef __INT32_TYPE__ I32;
13 typedef __INT64_TYPE__ I64;
14 typedef __UINT8_TYPE__ U8;
15 typedef __UINT16_TYPE__ U16;
16 typedef __UINT32_TYPE__ U32;
17 typedef __UINT64_TYPE__ U64;
18#else //Visual Studio
19 typedef __int8 I8;
20 typedef __int16 I16;
21 typedef __int32 I32;
22 typedef __int64 I64;
23 typedef unsigned __int8 U8;
24 typedef unsigned __int16 U16;
25 typedef unsigned __int32 U32;
26 typedef unsigned __int64 U64;
27#endif