Netbsd uses __UINTPTR_TYPE__ to detect gcc in machine/int_types.h
Unified · Split
| @@ -123,8 +123,10 @@ · 122 unmodified lines | |||
| 123 | 123 | ||
| 124 | #endif | 124 | #endif |
| 125 | /* Some derived integer types needed to get stdint.h to compile correctly on some platforms */ | 125 | /* Some derived integer types needed to get stdint.h to compile correctly on some platforms */ |
| 126 | #ifndef __NetBSD__ | ||
| 126 | #define __UINTPTR_TYPE__ unsigned __PTRDIFF_TYPE__ | 127 | #define __UINTPTR_TYPE__ unsigned __PTRDIFF_TYPE__ |
| 127 | #define __INTPTR_TYPE__ __PTRDIFF_TYPE__ | 128 | #define __INTPTR_TYPE__ __PTRDIFF_TYPE__ |
| 129 | #endif | ||
| 128 | #define __INT32_TYPE__ int | 130 | #define __INT32_TYPE__ int |
| 129 | 131 | ||
| 130 | #if !defined _WIN32 | 132 | #if !defined _WIN32 |