+2017-05-10 Bruno Haible <bruno@clisp.org>
+
+ wait-process: Adjust native Windows support.
+ * lib/wait-process.c: Use the usual condition for recognizing a native
+ Windows platform.
+
2017-05-10 Bruno Haible <bruno@clisp.org>
doc: New chapter "Native Windows Support".
#define SIZEOF(a) (sizeof(a) / sizeof(a[0]))
-#if defined _MSC_VER || defined __MINGW32__
+#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
-#define WIN32_LEAN_AND_MEAN
-#include <windows.h>
+# define WIN32_LEAN_AND_MEAN
+# include <windows.h>
/* The return value of spawnvp() is really a process handle as returned
by CreateProcess(). Therefore we can kill it using TerminateProcess. */
-#define kill(pid,sig) TerminateProcess ((HANDLE) (pid), sig)
+# define kill(pid,sig) TerminateProcess ((HANDLE) (pid), sig)
#endif