summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/include/_inttypes.h
diff options
context:
space:
mode:
authortijl <tijl@FreeBSD.org>2011-01-08 12:43:05 +0000
committertijl <tijl@FreeBSD.org>2011-01-08 12:43:05 +0000
commit89281909e199aee2c6c9da6a30e4c5d4a131fced (patch)
tree982d82f606fd515f513b96a4ec7aea4727588d31 /sys/powerpc/include/_inttypes.h
parent61d89c0b21ee8ee88c291bd781b885c9ff0d6245 (diff)
downloadFreeBSD-src-89281909e199aee2c6c9da6a30e4c5d4a131fced.zip
FreeBSD-src-89281909e199aee2c6c9da6a30e4c5d4a131fced.tar.gz
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)
Diffstat (limited to 'sys/powerpc/include/_inttypes.h')
-rw-r--r--sys/powerpc/include/_inttypes.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/powerpc/include/_inttypes.h b/sys/powerpc/include/_inttypes.h
index 06d4032..488871b 100644
--- a/sys/powerpc/include/_inttypes.h
+++ b/sys/powerpc/include/_inttypes.h
@@ -37,7 +37,7 @@
* Macros for format specifiers.
*/
-#ifdef __powerpc64__
+#ifdef __LP64__
#define PRI64 "l"
#define PRIreg "l"
#else
OpenPOWER on IntegriCloud