]> Savannah Git Hosting - gnulib.git/commitdiff
Avoid accidental use of native Windows APIs on Cygwin.
authorBruno Haible <bruno@clisp.org>
Fri, 21 Apr 2017 13:28:40 +0000 (15:28 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 21 Apr 2017 13:28:40 +0000 (15:28 +0200)
* lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
* lib/localcharset.c (WINDOWS_NATIVE): Likewise.
* lib/localename.c (WINDOWS_NATIVE): Likewise.

ChangeLog
lib/getaddrinfo.c
lib/localcharset.c
lib/localename.c

index bc44a578e03b3ec0d6d507ca926f0a83c9535d49..ff8b4e68a90fd2d3361dde3faacf08c3ea83596e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2017-04-21  Bruno Haible  <bruno@clisp.org>
+
+       Avoid accidental use of native Windows APIs on Cygwin.
+       * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
+       * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
+       * lib/localename.c (WINDOWS_NATIVE): Likewise.
+
 2017-04-20  Bruno Haible  <bruno@clisp.org>
 
        Remove red warnings from the generated MODULES.html.
index 38f3dd198d94460572d5dea78bbdd885a6e7f414..7dd7c8e68e7881806c1ea98b6d7cdd0ac1b6fb57 100644 (file)
@@ -54,7 +54,7 @@
 # define PF_UNSPEC 0
 #endif
 
-#if defined _WIN32 || defined __WIN32__
+#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
 # define WINDOWS_NATIVE
 #endif
 
index ec8601174c0fddcef39724e8c7c2198dc5e6146e..3c2b1ac8c8e558b1dbd644e9cb8f9155712cd5b8 100644 (file)
@@ -32,7 +32,7 @@
 # define DARWIN7 /* Darwin 7 or newer, i.e. Mac OS X 10.3 or newer */
 #endif
 
-#if defined _WIN32 || defined __WIN32__
+#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
 # define WINDOWS_NATIVE
 # include <locale.h>
 #endif
index 89ce88974f0480bc7d96f0462c093f3459cc3292..3ba9d08664a7ddc42cdb7d05a7216a454910d347 100644 (file)
@@ -61,7 +61,7 @@ extern char * getlocalename_l(int, locale_t);
 # endif
 #endif
 
-#if defined _WIN32 || defined __WIN32__
+#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
 # define WINDOWS_NATIVE
 # if !defined IN_LIBINTL
 #  include "glthread/lock.h"