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 | typedef signed char int8_t; | 13 | typedef signed char int8_t; |
| 14 | typedef signed short int int16_t; | 14 | typedef signed short int int16_t; |
| 15 | typedef signed int int32_t; | 15 | typedef signed int int32_t; |
| 16 | #ifdef __LP64__ | ||
| 17 | typedef signed long int int64_t; | ||
| 18 | #else | ||
| 16 | typedef signed long long int int64_t; | 19 | typedef signed long long int int64_t; |
| 20 | #endif | ||
| 17 | typedef unsigned char uint8_t; | 21 | typedef unsigned char uint8_t; |
| 18 | typedef unsigned short int uint16_t; | 22 | typedef unsigned short int uint16_t; |
| 19 | typedef unsigned int uint32_t; | 23 | typedef unsigned int uint32_t; |
| 24 | #ifdef __LP64__ | ||
| 25 | typedef unsigned long int uint64_t; | ||
| 26 | #else | ||
| 20 | typedef unsigned long long int uint64_t; | 27 | typedef unsigned long long int uint64_t; |
| 21 | #endif | 28 | #endif |
| 29 | #endif | ||
| 22 | 30 | ||
| 23 | #ifndef NULL | 31 | #ifndef NULL |
| 24 | #define NULL ((void*)0) | 32 | #define NULL ((void*)0) |