[PATCH 2.6.19] asm/types.h: Allow C99 to use __u64

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



C99 standard allows the use of the long long data type, both signed and
unsigned. We should allow this to be used if defined.

Signed-off-by: Roy Marples <[email protected]>


--- a/include/asm-arm/types.h	2006-11-29 21:57:37.000000000 +0000
+++ b/include/asm-arm/types.h	2006-12-21 17:21:43.000000000 +0000
@@ -19,7 +19,7 @@
 typedef __signed__ int __s32;
 typedef unsigned int __u32;
 
-#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
+#if (defined(__GNUC__) && !defined(__STRICT_ANSI__)) || defined(__USE_ISOC99)
 typedef __signed__ long long __s64;
 typedef unsigned long long __u64;
 #endif
--- a/include/asm-arm26/types.h	2006-11-29 21:57:37.000000000 +0000
+++ b/include/asm-arm26/types.h	2006-12-21 17:22:06.000000000 +0000
@@ -19,7 +19,7 @@
 typedef __signed__ int __s32;
 typedef unsigned int __u32;
 
-#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
+#if (defined(__GNUC__) && !defined(__STRICT_ANSI__)) || defined(__USE_ISOC99)
 typedef __signed__ long long __s64;
 typedef unsigned long long __u64;
 #endif
--- a/include/asm-avr32/types.h	2006-11-29 21:57:37.000000000 +0000
+++ b/include/asm-avr32/types.h	2006-12-21 17:22:28.000000000 +0000
@@ -25,7 +25,7 @@
 typedef __signed__ int __s32;
 typedef unsigned int __u32;
 
-#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
+#if (defined(__GNUC__) && !defined(__STRICT_ANSI__)) || defined(__USE_ISOC99)
 typedef __signed__ long long __s64;
 typedef unsigned long long __u64;
 #endif
--- a/include/asm-cris/types.h	2006-11-29 21:57:37.000000000 +0000
+++ b/include/asm-cris/types.h	2006-12-21 17:23:00.000000000 +0000
@@ -19,7 +19,7 @@
 typedef __signed__ int __s32;
 typedef unsigned int __u32;
 
-#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
+#if (defined(__GNUC__) && !defined(__STRICT_ANSI__)) || defined(__USE_ISOC99)
 typedef __signed__ long long __s64;
 typedef unsigned long long __u64;
 #endif
--- a/include/asm-frv/types.h	2006-11-29 21:57:37.000000000 +0000
+++ b/include/asm-frv/types.h	2006-12-21 17:23:23.000000000 +0000
@@ -30,7 +30,7 @@
 typedef __signed__ int __s32;
 typedef unsigned int __u32;
 
-#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
+#if (defined(__GNUC__) && !defined(__STRICT_ANSI__)) || defined(__USE_ISOC99)
 typedef __signed__ long long __s64;
 typedef unsigned long long __u64;
 #endif
--- a/include/asm-h8300/types.h	2006-11-29 21:57:37.000000000 +0000
+++ b/include/asm-h8300/types.h	2006-12-21 17:23:57.000000000 +0000
@@ -27,7 +27,7 @@
 typedef __signed__ int __s32;
 typedef unsigned int __u32;
 
-#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
+#if (defined(__GNUC__) && !defined(__STRICT_ANSI__)) || defined(__USE_ISOC99)
 typedef __signed__ long long __s64;
 typedef unsigned long long __u64;
 #endif
diff -ur a/include/asm-i386/types.h b/include/asm-i386/types.h
--- a/include/asm-i386/types.h	2006-11-29 21:57:37.000000000 +0000
+++ b/include/asm-i386/types.h	2006-12-21 17:20:37.000000000 +0000
@@ -19,7 +19,7 @@
 typedef __signed__ int __s32;
 typedef unsigned int __u32;
 
-#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
+#if (defined(__GNUC__) && !defined(__STRICT_ANSI__)) || defined(__USE_ISOC99)
 typedef __signed__ long long __s64;
 typedef unsigned long long __u64;
 #endif
--- a/include/asm-m68k/types.h	2006-11-29 21:57:37.000000000 +0000
+++ b/include/asm-m68k/types.h	2006-12-21 17:24:23.000000000 +0000
@@ -27,7 +27,7 @@
 typedef __signed__ int __s32;
 typedef unsigned int __u32;
 
-#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
+#if (defined(__GNUC__) && !defined(__STRICT_ANSI__)) || defined(__USE_ISOC99)
 typedef __signed__ long long __s64;
 typedef unsigned long long __u64;
 #endif
--- a/include/asm-mips/types.h	2006-11-29 21:57:37.000000000 +0000
+++ b/include/asm-mips/types.h	2006-12-21 17:24:56.000000000 +0000
@@ -34,7 +34,7 @@
 
 #else
 
-#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
+#if (defined(__GNUC__) && !defined(__STRICT_ANSI__)) || defined(__USE_ISOC99)
 typedef __signed__ long long __s64;
 typedef unsigned long long __u64;
 #endif
--- a/include/asm-parisc/types.h	2006-11-29 21:57:37.000000000 +0000
+++ b/include/asm-parisc/types.h	2006-12-21 17:25:20.000000000 +0000
@@ -19,7 +19,7 @@
 typedef __signed__ int __s32;
 typedef unsigned int __u32;
 
-#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
+#if (defined(__GNUC__) && !defined(__STRICT_ANSI__)) || defined(__USE_ISOC99)
 typedef __signed__ long long __s64;
 typedef unsigned long long __u64;
 #endif
--- a/include/asm-powerpc/types.h	2006-11-29 21:57:37.000000000 +0000
+++ b/include/asm-powerpc/types.h	2006-12-21 17:25:44.000000000 +0000
@@ -40,7 +40,7 @@
 typedef __signed__ long __s64;
 typedef unsigned long __u64;
 #else
-#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
+#if (defined(__GNUC__) && !defined(__STRICT_ANSI__)) || defined(__USE_ISOC99)
 typedef __signed__ long long __s64;
 typedef unsigned long long __u64;
 #endif
--- a/include/asm-s390/types.h	2006-11-29 21:57:37.000000000 +0000
+++ b/include/asm-s390/types.h	2006-12-21 17:26:34.000000000 +0000
@@ -28,7 +28,7 @@
 typedef unsigned int __u32;
 
 #ifndef __s390x__
-#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
+#if (defined(__GNUC__) && !defined(__STRICT_ANSI__)) || defined(__USE_ISOC99)
 typedef __signed__ long long __s64;
 typedef unsigned long long __u64;
 #endif
--- a/include/asm-sh/types.h	2006-11-29 21:57:37.000000000 +0000
+++ b/include/asm-sh/types.h	2006-12-21 17:26:57.000000000 +0000
@@ -19,7 +19,7 @@
 typedef __signed__ int __s32;
 typedef unsigned int __u32;
 
-#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
+#if (defined(__GNUC__) && !defined(__STRICT_ANSI__)) || defined(__USE_ISOC99)
 typedef __signed__ long long __s64;
 typedef unsigned long long __u64;
 #endif
--- a/include/asm-sh64/types.h	2006-11-29 21:57:37.000000000 +0000
+++ b/include/asm-sh64/types.h	2006-12-21 17:27:20.000000000 +0000
@@ -30,7 +30,7 @@
 typedef __signed__ int __s32;
 typedef unsigned int __u32;
 
-#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
+#if (defined(__GNUC__) && !defined(__STRICT_ANSI__)) || defined(__USE_ISOC99)
 typedef __signed__ long long __s64;
 typedef unsigned long long __u64;
 #endif
--- a/include/asm-v850/types.h	2006-11-29 21:57:37.000000000 +0000
+++ b/include/asm-v850/types.h	2006-12-21 17:28:16.000000000 +0000
@@ -27,7 +27,7 @@
 typedef __signed__ int __s32;
 typedef unsigned int __u32;
 
-#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
+#if (defined(__GNUC__) && !defined(__STRICT_ANSI__)) || defined(__USE_ISOC99)
 typedef __signed__ long long __s64;
 typedef unsigned long long __u64;
 #endif
--- a/include/asm-xtensa/types.h	2006-11-29 21:57:37.000000000 +0000
+++ b/include/asm-xtensa/types.h	2006-12-21 17:28:50.000000000 +0000
@@ -29,7 +29,7 @@
 typedef __signed__ int __s32;
 typedef unsigned int __u32;
 
-#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
+#if (defined(__GNUC__) && !defined(__STRICT_ANSI__)) || defined(__USE_ISOC99)
 typedef __signed__ long long __s64;
 typedef unsigned long long __u64;
 #endif
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux