From 7f38edf367853e14dc79e325b5f71f9af25b8814 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Wed, 31 Mar 2004 02:13:52 +0000 Subject: Minor Cygwin fix. (#138405, Roger Leigh) 2004-03-31 Tor Lillqvist * tests/spawn-test-win32-gui.c: Minor Cygwin fix. (#138405, Roger Leigh) --- tests/spawn-test-win32-gui.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests/spawn-test-win32-gui.c') diff --git a/tests/spawn-test-win32-gui.c b/tests/spawn-test-win32-gui.c index aade3e73a..45529d011 100644 --- a/tests/spawn-test-win32-gui.c +++ b/tests/spawn-test-win32-gui.c @@ -1,9 +1,18 @@ #include +#include #include #include #include #include +#ifdef __CYGWIN__ +/* For read() and write() */ +#include +/* Cygwin does not prototype __argc and __argv in stdlib.h */ +extern int __argc; +extern char** __argv; +#endif + int _stdcall WinMain (struct HINSTANCE__ *hInstance, struct HINSTANCE__ *hPrevInstance, -- cgit v1.2.1