Prevent definition of HAVE_WINxxx_H symbols and avoid inclusion of Windows headers when compiled with Cygwin in POSIX emulation mode.

This commit is contained in:
Yang Tse
2006-07-05 23:10:37 +00:00
parent c6ae0ebcbf
commit bc2f0c7dcb
9 changed files with 208 additions and 11 deletions

View File

@@ -81,7 +81,7 @@
* winsock2.h, ws2tcpip.h or winsock.h. Any other windows thing belongs
* to any other further and independant block. Under Cygwin things work
* just as under linux (e.g. <sys/socket.h>) and the winsock headers should
* never be included.
* never be included when __CYGWIN__ is defined.
*/
#if defined(HAVE_WINDOWS_H) && !defined(__CYGWIN__)