diff --git a/include/stdint.h b/include/stdint.h index 14ebcdacc2..74c5959564 100644 --- a/include/stdint.h +++ b/include/stdint.h @@ -367,8 +367,12 @@ typedef __UINTMAX_TYPE__ uintmax_t; #undef WINT_WIDTH #define WINT_WIDTH __WINT_WIDTH__ +#ifdef __ILP32__ +#define SIZE_MAX UINT32_MAX +#else #define SIZE_MAX UINT64_MAX #endif +#endif typedef long sig_atomic_t;