asm-generic/int-ll64.h: always provide __{s,u}64

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Friday, July 25, 2008 - 12:00 pm

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=f16695...
Commit:     f16695f4ac088cf7593e113574046d2d7e5af5eb
Parent:     cebbd3fb803603b12408458ba17c29ce1e15a5f2
Author:     Adrian Bunk <bunk@kernel.org>
AuthorDate: Fri Jul 25 01:45:36 2008 -0700
Committer:  Linus Torvalds <torvalds@linux-foundation.org>
CommitDate: Fri Jul 25 10:53:27 2008 -0700

    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>
---
 include/asm-generic/int-ll64.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
asm-generic/int-ll64.h: always provide __{s,u}64, Linux Kernel Mailing ..., (Fri Jul 25, 12:00 pm)