public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [2.6 patch] asm-generic/int-ll64.h: always provide __{s,u}64
@ 2008-05-19 21:54 Adrian Bunk
  2008-05-19 22:01 ` H. Peter Anvin
  0 siblings, 1 reply; 12+ messages in thread
From: Adrian Bunk @ 2008-05-19 21:54 UTC (permalink / raw)
  To: H. Peter Anvin; +Cc: linux-kernel, Andrew Morton

Several compilers offer "long long" without claiming to support C99.

Considering how frequent __s64/__u64 are used our userspace headers are 
anyway unusable without __s64/__u64 available.

Always offer __s64/__u64 to non-gcc non-C99 compilers - if they provide 
"long long" that makes the headers compiling and if they don't they are 
anyway screwed.

Signed-off-by: Adrian Bunk <bunk@kernel.org>

---
bd3028092483c517700a40c36ca264cedd0ff488 diff --git a/include/asm-generic/int-ll64.h b/include/asm-generic/int-ll64.h
index 2609489..f9bc9ac 100644
--- a/include/asm-generic/int-ll64.h
+++ b/include/asm-generic/int-ll64.h
@@ -26,7 +26,7 @@ typedef unsigned int __u32;
 #ifdef __GNUC__
 __extension__ typedef __signed__ long long __s64;
 __extension__ typedef unsigned long long __u64;
-#elif defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
+#else
 typedef __signed__ long long __s64;
 typedef unsigned long long __u64;
 #endif


^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2008-05-20 15:01 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-19 21:54 [2.6 patch] asm-generic/int-ll64.h: always provide __{s,u}64 Adrian Bunk
2008-05-19 22:01 ` H. Peter Anvin
2008-05-19 22:27   ` Harvey Harrison
2008-05-19 22:29     ` H. Peter Anvin
2008-05-19 22:32     ` Adrian Bunk
2008-05-19 23:51       ` H. Peter Anvin
2008-05-20  0:13         ` Adrian Bunk
2008-05-20  0:17           ` H. Peter Anvin
2008-05-20  0:33             ` Adrian Bunk
2008-05-20  1:16               ` H. Peter Anvin
2008-05-20  9:09                 ` Adrian Bunk
2008-05-20 14:54                   ` H. Peter Anvin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox