aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/include/sys
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2000-06-22 20:18:17 +0000
committerChristopher Faylor <me@cgf.cx>2000-06-22 20:18:17 +0000
commitf33acdb808787b32318466688eb81ce3c48d28e2 (patch)
tree7a7dfc1587b085435c21059157e25c2d7edbc84d /winsup/cygwin/include/sys
parent5af1047b411b28abac69959fcb9bb81e749d7dac (diff)
downloadnewlib-f33acdb808787b32318466688eb81ce3c48d28e2.zip
newlib-f33acdb808787b32318466688eb81ce3c48d28e2.tar.gz
newlib-f33acdb808787b32318466688eb81ce3c48d28e2.tar.bz2
* include/sys/cygwin.h: Don't define parts of this file that rely on Windows
headers unless the Windows header was previously included.
Diffstat (limited to 'winsup/cygwin/include/sys')
-rw-r--r--winsup/cygwin/include/sys/cygwin.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/include/sys/cygwin.h b/winsup/cygwin/include/sys/cygwin.h
index e72202b..2e1cc33 100644
--- a/winsup/cygwin/include/sys/cygwin.h
+++ b/winsup/cygwin/include/sys/cygwin.h
@@ -39,11 +39,10 @@ extern void cygwin_premain1 (int argc, char **argv);
extern void cygwin_premain2 (int argc, char **argv);
extern void cygwin_premain3 (int argc, char **argv);
-#ifdef _GNU_H_WINDOWS32_BASE
+#ifdef WINVER
/* included if <windows.h> is included */
extern int cygwin32_attach_handle_to_fd (char *, int, HANDLE, int, int);
extern int cygwin_attach_handle_to_fd (char *, int, HANDLE, mode_t, unsigned);
-#endif
#include <sys/resource.h>
@@ -87,6 +86,7 @@ struct external_pinfo
};
DWORD cygwin_internal (cygwin_getinfo_types, ...);
+#endif /*WINVER*/
#define CW_NEXTPID 0x80000000 // or with pid to get next one