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.