define uint64_t and int64_t as 'long' instead of 'long long' when __LP64__ is define.
Showing the changes to include (1 of 2 files). Show all
Unified · Split
| @@ -13,12 +13,20 @@ typedef __SIZE_TYPE__ uintptr_t; · 12 unmodified lines | ||
| 13 | 13 | typedef signed char int8_t; |
| 14 | 14 | typedef signed short int int16_t; |
| 15 | 15 | typedef signed int int32_t; |
| 16 | +#ifdef __LP64__ | |
| 17 | +typedef signed long int int64_t; | |
| 18 | +#else | |
| 16 | 19 | typedef signed long long int int64_t; |
| 20 | +#endif | |
| 17 | 21 | typedef unsigned char uint8_t; |
| 18 | 22 | typedef unsigned short int uint16_t; |
| 19 | 23 | typedef unsigned int uint32_t; |
| 24 | +#ifdef __LP64__ | |
| 25 | +typedef unsigned long int uint64_t; | |
| 26 | +#else | |
| 20 | 27 | typedef unsigned long long int uint64_t; |
| 21 | 28 | #endif |
| 29 | +#endif | |
| 22 | 30 | |
| 23 | 31 | #ifndef NULL |
| 24 | 32 | #define NULL ((void*)0) |