IRC_SERVER
By @hyunjunk (hyunjun2372@gmail.com)
Loading...
Searching...
No Matches
FixedWidthType.hpp
Go to the documentation of this file.
1#pragma once
2
3// Mac OS X 64bit or Ubuntu 64bit
4#if (defined(__APPLE__) && defined(__MACH__) && defined(__x86_64__)) || (defined(__linux__) && defined(__x86_64__))
5 #ifndef _INT8_T
6 #define _INT8_T
7 typedef signed char int8_t;
8 #endif /* _INT8_T */
9
10 #ifndef _UINT8_T
11 #define _UINT8_T
12 typedef unsigned char uint8_t;
13 #endif /* _UINT8_T */
14
15 #ifndef _INT16_T
16 #define _INT16_T
17 typedef short int16_t;
18 #endif /* _INT16_T */
19
20 #ifndef _UINT16_T
21 #define _UINT16_T
22 typedef unsigned short uint16_t;
23 #endif /* _UINT16_T */
24
25 #ifndef _INT32_T
26 #define _INT32_T
27 typedef int int32_t;
28 #endif /* _INT32_T */
29
30 #ifndef _UINT32_T
31 #define _UINT32_T
32 typedef unsigned int uint32_t;
33 #endif /* _UINT32_T */
34
35 #ifndef _INT64_T
36 #define _INT64_T
37 typedef long int64_t;
38 #endif /* _INT64_T */
39
40 #ifndef _UINT64_T
41 #define _UINT64_T
42 typedef unsigned long uint64_t;
43 #endif /* _UINT64_T */
44
45 #ifndef _UINTPTR_T
46 #define _UINTPTR_T
47 typedef unsigned long uintptr_t;
48 #endif /* _UINTPTR_T */
49
50 #ifndef _INTPTR_T
51 #define _INTPTR_T
52 typedef long intptr_t;
53 #endif /* _INTPTR_T */
54#else
55 #error "Unsupported platform"
56#endif