Dynalib Utils
TypeDefs.h
Go to the documentation of this file.
1 /*
2  * TypeDefs.h
3  *
4  * Created on: 2/10/2017
5  * Author: ken
6  */
7 #ifndef TYPEDEFS_H_
8 #define TYPEDEFS_H_
9 
10 #include <cstdint>
11 
12 // #if defined(__APPLE__) && defined(__MACH__)
13 // //#define MODEL_LP64
14 // #elif defined(__MINGW32__)
15 // #elif defined(_WIN32)
16 // #elif defined(_WIN64)
17 // #elif defined(__MINGW64__)
18 // #elif defined(__linux__)
19 // #elif defined(__unix__)
20 // #endif
21 
22 typedef uint8_t uchar;
23 typedef uint16_t ushort;
24 
25 #if defined(__LP32__)
26  typedef uint16_t uint;
27  typedef uint32_t ulong;
28  typedef uint64_t ulonglong;
29 #elif defined(__ILP32__)
30  typedef uint32_t uint;
31  typedef uint32_t ulong;
32  typedef uint64_t ulonglong;
33 #elif defined(__LLP64__)
34  typedef uint32_t uint;
35  typedef uint32_t ulong;
36  typedef uint64_t ulonglong;
37 #elif defined(__LP64__)
38  typedef uint32_t uint;
39  typedef uint64_t ulong;
40  typedef uint64_t ulonglong;
41 #endif
42 
43 
44 #define __NOOP do {} while (0)
45 
46 #endif /* TYPEDEFS_H_ */
uint16_t ushort
Definition: TypeDefs.h:23
uint8_t uchar
Definition: TypeDefs.h:22