From a56e818f29e03249aa03610ff136d2566ed0b0e3 Mon Sep 17 00:00:00 2001 From: Tijl Coosemans Date: Sat, 8 Jan 2011 12:43:05 +0000 Subject: On mixed 32/64 bit architectures (mips, powerpc) use __LP64__ rather than architecture macros (__mips_n64, __powerpc64__) when 64 bit types (and corresponding macros) are different from 32 bit. [1] Correct the type of INT64_MIN, INT64_MAX and UINT64_MAX. Define (U)INTMAX_C as an alias for (U)INT64_C matching the type definition for (u)intmax_t. Do this on all architectures for consistency. Suggested by: bde [1] Approved by: kib (mentor) --- sys/sparc64/include/_stdint.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/sparc64/include') diff --git a/sys/sparc64/include/_stdint.h b/sys/sparc64/include/_stdint.h index 1aed3e3b4efc..68413282c4de 100644 --- a/sys/sparc64/include/_stdint.h +++ b/sys/sparc64/include/_stdint.h @@ -52,8 +52,8 @@ #define UINT32_C(c) (c ## U) #define UINT64_C(c) (c ## UL) -#define INTMAX_C(c) (c ## L) -#define UINTMAX_C(c) (c ## UL) +#define INTMAX_C(c) INT64_C(c) +#define UINTMAX_C(c) UINT64_C(c) #endif /* !defined(__cplusplus) || defined(__STDC_CONSTANT_MACROS) */ -- cgit v1.2.3