From 0212856f3c788db95e27cff465fc519fa3e0f34e Mon Sep 17 00:00:00 2001 From: Peter Grehan Date: Sat, 18 Jan 2003 11:18:42 +0000 Subject: [PATCH] Change definition of int64 to avoid gcc3.2.1 complaints. Taken from i386 Approved by: benno --- sys/powerpc/include/_types.h | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/sys/powerpc/include/_types.h b/sys/powerpc/include/_types.h index 2c52af06a57..7b6e9e3b337 100644 --- a/sys/powerpc/include/_types.h +++ b/sys/powerpc/include/_types.h @@ -48,10 +48,21 @@ typedef short __int16_t; typedef unsigned short __uint16_t; typedef int __int32_t; typedef unsigned int __uint32_t; + +#if defined(lint) /* LONGLONG */ -typedef long long __int64_t; +typedef long long __int64_t; /* LONGLONG */ -typedef unsigned long long __uint64_t; +typedef unsigned long long __uint64_t; +#elif defined(__GNUC__) +typedef int __attribute__((__mode__(__DI__))) __int64_t; +typedef unsigned int __attribute__((__mode__(__DI__))) __uint64_t; +#else +/* LONGLONG */ +typedef long long __int64_t; +/* LONGLONG */ +typedef unsigned long long __uint64_t; +#endif /* * Standard type definitions.