public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Always provide register_t via <sys/types.h>
@ 2016-04-21  8:39 Corinna Vinschen
  0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2016-04-21  8:39 UTC (permalink / raw)
  To: cygwin-cvs, newlib-cvs

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

commit 51062c856b17c484a5b805b3d63654e87c6fe845
Author: Sebastian Huber <sebastian.huber@embedded-brains.de>
Date:   Thu Apr 21 08:21:45 2016 +0200

    Always provide register_t via <sys/types.h>
    
    Always provide register_t via <sys/types.h> for glibc and BSD
    compatibility.  Define __BIT_TYPES_DEFINED__ to 1 like glibc for legacy
    header files.
    
    Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>

Diff:
---
 newlib/libc/include/sys/types.h       | 6 ++----
 winsup/cygwin/include/machine/types.h | 5 -----
 2 files changed, 2 insertions(+), 9 deletions(-)

diff --git a/newlib/libc/include/sys/types.h b/newlib/libc/include/sys/types.h
index ee9db75..379b755 100644
--- a/newlib/libc/include/sys/types.h
+++ b/newlib/libc/include/sys/types.h
@@ -36,6 +36,8 @@ typedef __uint32_t	u_int32_t;
 #if ___int64_t_defined
 typedef __uint64_t	u_int64_t;
 #endif
+typedef int register_t;
+#define __BIT_TYPES_DEFINED__ 1
 
 #if defined(__rtems__) || defined(__XMK__)
 /*
@@ -158,10 +160,6 @@ typedef	__ino_t		ino_t;		/* inode number */
 typedef	char *		addr_t;
 typedef unsigned long vm_offset_t;
 typedef unsigned long vm_size_t;
-
-#define __BIT_TYPES_DEFINED__
-
-typedef int32_t register_t;
 #endif /* __i386__ && (GO32 || __MSDOS__) */
 
 /*
diff --git a/winsup/cygwin/include/machine/types.h b/winsup/cygwin/include/machine/types.h
index cfc372f..bde3371 100644
--- a/winsup/cygwin/include/machine/types.h
+++ b/winsup/cygwin/include/machine/types.h
@@ -71,11 +71,6 @@ typedef unsigned long vm_size_t;
 typedef void *vm_object_t;
 #endif /* __vm_object_t_defined */
 
-#ifndef __register_t_defined
-#define __register_t_defined
-typedef __int32_t register_t;
-#endif
-
 #ifndef __addr_t_defined
 #define __addr_t_defined
 typedef char *addr_t;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-04-21  8:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-21  8:39 [newlib-cygwin] Always provide register_t via <sys/types.h> Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).