Skip to content

Commit

Permalink
asm-generic/int-ll64.h: always provide __{s,u}64
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Adrian Bunk authored and Linus Torvalds committed Jul 25, 2008
1 parent cebbd3f commit f16695f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/asm-generic/int-ll64.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f16695f

Please sign in to comment.