public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] sys/cdefs.h: Define __hidden as empty on Cygwin
@ 2016-11-08 15:16 Corinna Vinschen
  0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2016-11-08 15:16 UTC (permalink / raw)
  To: newlib-cvs

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

commit 9ba4744620f277188955f90055237d9e89b8e6f9
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Tue Nov 8 16:14:43 2016 +0100

    sys/cdefs.h: Define __hidden as empty on Cygwin
    
    Non-default visibility attributes are unsupported on PE/COFF, so don't
    use in __hidden definition for Cygwin.  Add comment.
    
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>

Diff:
---
 newlib/libc/include/sys/cdefs.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/newlib/libc/include/sys/cdefs.h b/newlib/libc/include/sys/cdefs.h
index 2a55a92..f569fc4 100644
--- a/newlib/libc/include/sys/cdefs.h
+++ b/newlib/libc/include/sys/cdefs.h
@@ -466,8 +466,13 @@
 #if __GNUC_PREREQ__(4, 0)
 #define	__sentinel	__attribute__((__sentinel__))
 #define	__exported	__attribute__((__visibility__("default")))
+/* Only default visibility is supported on PE/COFF targets. */
+#ifndef __CYGWIN__
 #define	__hidden	__attribute__((__visibility__("hidden")))
 #else
+#define	__hidden
+#endif
+#else
 #define	__sentinel
 #define	__exported
 #define	__hidden


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

only message in thread, other threads:[~2016-11-08 15:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-08 15:16 [newlib-cygwin] sys/cdefs.h: Define __hidden as empty on Cygwin 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).