[newlib-cygwin/cygwin-2.0] Define __s64 and __u64

Corinna Vinschen corinna@sourceware.org
Mon Apr 27 12:41:00 GMT 2015


https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=49c051c13352cd2fd2131a379d51a4a63c09283e

commit 49c051c13352cd2fd2131a379d51a4a63c09283e
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Mon Apr 27 14:39:57 2015 +0200

    Define __s64 and __u64
    
            * include/asm/types.h: Add __s64 and __u64 types.
    
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>

Diff:
---
 winsup/cygwin/ChangeLog           | 4 ++++
 winsup/cygwin/include/asm/types.h | 6 +++++-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 5923442..43bbbc1 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,7 @@
+2015-04-27  Corinna Vinschen  <corinna@vinschen.de>
+
+	* include/asm/types.h: Add __s64 and __u64 types.
+
 2015-04-23  Corinna Vinschen  <corinna@vinschen.de>
 
 	* path.cc (path_conv::set_nt_native_path): New function.
diff --git a/winsup/cygwin/include/asm/types.h b/winsup/cygwin/include/asm/types.h
index 19cc2ca..dc51af6 100644
--- a/winsup/cygwin/include/asm/types.h
+++ b/winsup/cygwin/include/asm/types.h
@@ -1,6 +1,6 @@
 /* asm/types.h
 
-   Copyright 1998, 2000, 2001 Red Hat, Inc.
+   Copyright 1998, 2000, 2001, 2015 Red Hat, Inc.
 
 This file is part of Cygwin.
 
@@ -20,4 +20,8 @@ typedef unsigned short __u16;
 typedef __signed__ int __s32;
 typedef unsigned int __u32;
 
+/* As on Linux.  Works for both platforms, i686 and x86_64. */
+typedef __signed__ long long __s64;
+typedef unsigned long long __u64;
+
 #endif /* _ASM_TYPES_H */



More information about the Cygwin-cvs mailing list