Commit f16695f4ac088cf7593e113574046d2d7e5af5eb
Committed by
Linus Torvalds
1 parent
cebbd3fb80
Exists in
master
and in
39 other branches
asm-generic/int-ll64.h: always provide __{s,u}64
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> Acked-by: H. Peter Anvin <hpa@zytor.com> Cc: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
include/asm-generic/int-ll64.h
... | ... | @@ -26,7 +26,7 @@ |
26 | 26 | #ifdef __GNUC__ |
27 | 27 | __extension__ typedef __signed__ long long __s64; |
28 | 28 | __extension__ typedef unsigned long long __u64; |
29 | -#elif defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L | |
29 | +#else | |
30 | 30 | typedef __signed__ long long __s64; |
31 | 31 | typedef unsigned long long __u64; |
32 | 32 | #endif |