diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2019-01-26 18:26:56 +0100 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2019-01-26 18:34:03 +0100 |
commit | 6ffcc50f192b75971b88d5e5bdffdeec945153a8 (patch) | |
tree | a539fc8868762d923499bba539d9f38679e462fb /winsup | |
parent | 0e3fd33321414e03466370bca048b4c4b6f91ba0 (diff) | |
download | newlib-6ffcc50f192b75971b88d5e5bdffdeec945153a8.zip newlib-6ffcc50f192b75971b88d5e5bdffdeec945153a8.tar.gz newlib-6ffcc50f192b75971b88d5e5bdffdeec945153a8.tar.bz2 |
Cygwin: netdb.h: fix __GNU_VISIBLE tests
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/cygwin/include/netdb.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/include/netdb.h b/winsup/cygwin/include/netdb.h index 91e9172..30fb063 100644 --- a/winsup/cygwin/include/netdb.h +++ b/winsup/cygwin/include/netdb.h @@ -167,7 +167,7 @@ extern __declspec(dllimport) int h_errno; #define AI_ADDRCONFIG 0x400 /* Only return address types available on this host. */ #define AI_V4MAPPED 0x800 /* IPv4 mapped addresses are acceptable. */ -#ifdef __GNU_VISIBLE +#if __GNU_VISIBLE /* Glibc extensions. We use numerical values taken by winsock-specific extensions. */ #define AI_IDN 0x4000 /* Encode IDN input from current local to @@ -186,7 +186,7 @@ extern __declspec(dllimport) int h_errno; #define NI_NAMEREQD 0x4 /* Not being able to resolve is an error. */ #define NI_NUMERICSERV 0x8 /* Return port number, rather than name. */ #define NI_DGRAM 0x10 /* Lookup datagram (UDP) service. */ -#ifdef __GNU_VISIBLE +#if __GNU_VISIBLE /* Glibc extensions. We use numerical values taken by winsock-specific extensions. */ #define NI_IDN 0x4000 /* Decode name from punycode to IDN in @@ -215,7 +215,7 @@ extern __declspec(dllimport) int h_errno; #define EAI_BADHINTS 12 /* Invalid value for hints */ #define EAI_PROTOCOL 13 /* Resolved protocol is unknown */ #define EAI_OVERFLOW 14 /* An argument buffer overflowed */ -#ifdef __GNU_VISIBLE +#if __GNU_VISIBLE /* Glibc extensions. */ #define EAI_IDN_ENCODE 15 /* Parameter string not correctly encoded */ #endif |