summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/include/_types.h
diff options
context:
space:
mode:
authorgrehan <grehan@FreeBSD.org>2003-01-18 11:18:42 +0000
committergrehan <grehan@FreeBSD.org>2003-01-18 11:18:42 +0000
commit63c6d5a63109339dcea6985763ac64e0401ba877 (patch)
tree63e231d2476bc9b29f6d443f071360251980619b /sys/powerpc/include/_types.h
parentd5b262df4817aac10c9d3358aa89a58c8ede374f (diff)
downloadFreeBSD-src-63c6d5a63109339dcea6985763ac64e0401ba877.zip
FreeBSD-src-63c6d5a63109339dcea6985763ac64e0401ba877.tar.gz
Change definition of int64 to avoid gcc3.2.1 complaints. Taken from i386
Approved by: benno
Diffstat (limited to 'sys/powerpc/include/_types.h')
-rw-r--r--sys/powerpc/include/_types.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/sys/powerpc/include/_types.h b/sys/powerpc/include/_types.h
index 2c52af0..7b6e9e3 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;
/* LONGLONG */
-typedef long long __int64_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 unsigned long long __uint64_t;
+typedef long long __int64_t;
+/* LONGLONG */
+typedef unsigned long long __uint64_t;
+#endif
/*
* Standard type definitions.
OpenPOWER on IntegriCloud