File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ typedef unsigned __int64 QWORD;
14
14
15
15
#else /* Embedded platform */
16
16
17
+ #include <stdint.h>
18
+
17
19
/* These types MUST be 16-bit or 32-bit */
18
20
typedef int INT ;
19
21
typedef unsigned int UINT ;
@@ -22,16 +24,16 @@ typedef unsigned int UINT;
22
24
typedef unsigned char BYTE ;
23
25
24
26
/* These types MUST be 16-bit */
25
- typedef short SHORT ;
26
- typedef unsigned short WORD ;
27
- typedef unsigned short WCHAR ;
27
+ typedef int16_t SHORT ;
28
+ typedef uint16_t WORD ;
29
+ typedef uint16_t WCHAR ;
28
30
29
31
/* These types MUST be 32-bit */
30
- typedef long LONG ;
31
- typedef unsigned long DWORD ;
32
+ typedef int32_t LONG ;
33
+ typedef uint32_t DWORD ;
32
34
33
35
/* This type MUST be 64-bit (Remove this for C89 compatibility) */
34
- typedef unsigned long long QWORD ;
36
+ typedef uint64_t QWORD ;
35
37
36
38
#endif
37
39
You can’t perform that action at this time.
0 commit comments