11 typedef unsigned char uint8_t;
12 typedef short int16_t;
13 typedef unsigned short uint16_t;
15 typedef unsigned int uint32_t;
17 typedef __int64 int64_t;
18 typedef unsigned __int64 uint64_t;
20 #define __BEGIN_ALIGNMENT(x)__ __pragma(pack(push, x))
21 #define __END_ALIGNMENT(x)__ __pragma(pack(pop))
23 #define __BEGIN_PACKED__ __pragma(pack(push, 1))
24 #define __END_PACKED__ __pragma(pack(pop))
27 #define __STDCALL __stdcall
28 #define INLINE __inline
30 #define __UNLIKELY(x) x
33 #elif defined(__LINUX__) || defined(__ANDROID__)
35 typedef unsigned char BYTE;
36 typedef unsigned short WORD;
37 typedef unsigned long DWORD;
39 typedef unsigned char UCHAR;
40 typedef unsigned short USHORT;
41 typedef unsigned int UINT;
42 typedef unsigned long ULONG;
48 typedef const char * LPCSTR;
55 #define __BEGIN_ALIGNMENT__(x)
56 #define __END_ALIGNMENT__(x)
58 #define __BEGIN_PACKED__
59 #define __END_PACKED__
60 #define __PACKED__ __attribute__((__packed__))
64 #define __LIKELY(x) __builtin_expect(!!(x), 1)
65 #define __UNLIKELY(x) __builtin_expect(!!(x), 0)
67 #elif defined(ARM_UCOS_LWIP)
70 typedef unsigned char uint8_t;
71 typedef short int16_t;
72 typedef unsigned short uint16_t;
74 typedef unsigned int uint32_t;
76 typedef __int64 int64_t;
77 typedef unsigned __int64 uint64_t;
79 typedef unsigned char BYTE;
80 typedef unsigned short WORD;
81 typedef unsigned long DWORD;
83 typedef unsigned char UCHAR;
84 typedef unsigned short USHORT;
85 typedef unsigned int UINT;
86 typedef unsigned long ULONG;
89 #define __BEGIN_ALIGNMENT(x)__
90 #define __END_ALIGNMENT(x)__
92 #define __BEGIN_PACKED__
93 #define __END_PACKED__
94 #define __PACKED__ __attribute__((__packed__))
97 #define INLINE __inline
99 #define __UNLIKELY(x) x