mirror of
https://github.com/curl/curl.git
synced 2026-07-26 04:07:17 +03:00
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:
parent
c6ae0ebcbf
commit
bc2f0c7dcb
9 changed files with 208 additions and 11 deletions
|
|
@ -43,8 +43,8 @@
|
|||
#define WIN32 1
|
||||
#endif
|
||||
|
||||
#if defined(WIN32) && !defined(_WIN32_WCE) && !defined(__GNUC__) || \
|
||||
defined(__MINGW32__)
|
||||
#if defined(WIN32) && !defined(_WIN32_WCE) && !defined(__GNUC__) && \
|
||||
!defined(__CYGWIN__) || defined(__MINGW32__)
|
||||
#if !(defined(_WINSOCKAPI_) || defined(_WINSOCK_H))
|
||||
/* The check above prevents the winsock2 inclusion if winsock.h already was
|
||||
included, since they can't co-exist without problems */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue