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>
This commit is contained in:
parent
172e2050d9
commit
9ba4744620
@ -466,8 +466,13 @@
|
|||||||
#if __GNUC_PREREQ__(4, 0)
|
#if __GNUC_PREREQ__(4, 0)
|
||||||
#define __sentinel __attribute__((__sentinel__))
|
#define __sentinel __attribute__((__sentinel__))
|
||||||
#define __exported __attribute__((__visibility__("default")))
|
#define __exported __attribute__((__visibility__("default")))
|
||||||
|
/* Only default visibility is supported on PE/COFF targets. */
|
||||||
|
#ifndef __CYGWIN__
|
||||||
#define __hidden __attribute__((__visibility__("hidden")))
|
#define __hidden __attribute__((__visibility__("hidden")))
|
||||||
#else
|
#else
|
||||||
|
#define __hidden
|
||||||
|
#endif
|
||||||
|
#else
|
||||||
#define __sentinel
|
#define __sentinel
|
||||||
#define __exported
|
#define __exported
|
||||||
#define __hidden
|
#define __hidden
|
||||||
|
Loading…
x
Reference in New Issue
Block a user