hrev48499 adds 1 changeset to branch 'master' old head: 1cf6c6a79d32413cab93b58328a5a31332d2cd8f new head: 1d13a6090186938a21aeb09c26c383f370c749eb overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=1d13a60+%5E1cf6c6a ---------------------------------------------------------------------------- 1d13a60: stdint.h: define [U]INT64[MAX|MIN] with [U]L on x86_64 instead of [U]LL [ Jérôme Duval <jerome.duval@xxxxxxxxx> ] ---------------------------------------------------------------------------- Revision: hrev48499 Commit: 1d13a6090186938a21aeb09c26c383f370c749eb URL: http://cgit.haiku-os.org/haiku/commit/?id=1d13a60 Author: Jérôme Duval <jerome.duval@xxxxxxxxx> Date: Sun Dec 14 14:43:04 2014 UTC ---------------------------------------------------------------------------- 1 file changed, 7 insertions(+), 2 deletions(-) headers/posix/stdint.h | 9 +++++++-- ---------------------------------------------------------------------------- diff --git a/headers/posix/stdint.h b/headers/posix/stdint.h index 6baebcd..03e6695 100644 --- a/headers/posix/stdint.h +++ b/headers/posix/stdint.h @@ -69,9 +69,14 @@ typedef uint64_t uintmax_t; #define INT32_MIN (-INT32_MAX-1) #define UINT32_MAX (4294967295U) -#define INT64_MAX (9223372036854775807LL) -#define INT64_MIN (-INT64_MAX-1) +#if defined(__SIZEOF_LONG__) && __SIZEOF_LONG__ > 4 +#define INT64_MAX (9223372036854775807UL) +#define UINT64_MAX (18446744073709551615UL) +#else +#define INT64_MAX (9223372036854775807ULL) #define UINT64_MAX (18446744073709551615ULL) +#endif +#define INT64_MIN (-INT64_MAX-1) /* Limits of minimum-width integer types */ #define INT_LEAST8_MIN INT8_MIN