diff options
author | 3gg <3gg@shellblade.net> | 2021-12-04 22:22:47 -0800 |
---|---|---|
committer | 3gg <3gg@shellblade.net> | 2021-12-04 22:22:47 -0800 |
commit | e62be3b12d3c94d709a77d89f52c31f7c4ac475d (patch) | |
tree | bb351f85960443086730f0354f829958b2d03190 /desktop/types.h | |
parent | 48481ba9032689e1bceba05c98bc69972e1a2d3b (diff) |
Initial commit.
Diffstat (limited to 'desktop/types.h')
-rwxr-xr-x | desktop/types.h | 27 |
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 | /* | ||
6 | File: 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 | ||