diff --git a/lib/dict.c b/lib/dict.c index 1f130ad15..c83301c30 100644 --- a/lib/dict.c +++ b/lib/dict.c @@ -38,7 +38,7 @@ #include #endif -#if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__) +#if defined(WIN32) && !defined(__CYGWIN__) #include #include #else diff --git a/lib/easy.c b/lib/easy.c index 3356ca3cf..141c74779 100644 --- a/lib/easy.c +++ b/lib/easy.c @@ -40,7 +40,7 @@ #include "strequal.h" -#if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__) +#if defined(WIN32) && !defined(__CYGWIN__) #include #include #else diff --git a/lib/file.c b/lib/file.c index 4fb5b1f5f..6643e8015 100644 --- a/lib/file.c +++ b/lib/file.c @@ -37,7 +37,7 @@ #include #endif -#if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__) +#if defined(WIN32) && !defined(__CYGWIN__) #include #include #include diff --git a/lib/ftp.c b/lib/ftp.c index bc069a2b0..08525dfc0 100644 --- a/lib/ftp.c +++ b/lib/ftp.c @@ -34,7 +34,7 @@ #include #endif -#if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__) +#if defined(WIN32) && !defined(__CYGWIN__) #else /* probably some kind of unix */ #ifdef HAVE_SYS_SOCKET_H diff --git a/lib/http.c b/lib/http.c index 1b638829b..f7d495529 100644 --- a/lib/http.c +++ b/lib/http.c @@ -37,7 +37,7 @@ #include #endif -#if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__) +#if defined(WIN32) && !defined(__CYGWIN__) #include #include #else diff --git a/lib/setup.h b/lib/setup.h index b06214dfb..a02834ecd 100644 --- a/lib/setup.h +++ b/lib/setup.h @@ -218,7 +218,7 @@ typedef unsigned char bool; #ifdef WIN32 -#if !defined(__GNUC__) || defined(__MINGW32__) +#if !defined(__CYGWIN__) #define sclose(x) closesocket(x) #undef HAVE_ALARM diff --git a/lib/timeval.h b/lib/timeval.h index 84ea27418..f79f41c73 100644 --- a/lib/timeval.h +++ b/lib/timeval.h @@ -30,7 +30,7 @@ #include "setup.h" -#if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__) +#if defined(WIN32) && !defined(__CYGWIN__) #include #else #ifdef HAVE_SYS_TIME_H diff --git a/lib/transfer.c b/lib/transfer.c index 4fab23c73..824b6a6e8 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -41,7 +41,7 @@ #include "strtoofft.h" #include "strequal.h" -#if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__) +#if defined(WIN32) && !defined(__CYGWIN__) #include #include #else diff --git a/lib/url.c b/lib/url.c index bc6e3f2b8..aaf59132a 100644 --- a/lib/url.c +++ b/lib/url.c @@ -38,7 +38,7 @@ #endif #include -#if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__) +#if defined(WIN32) && !defined(__CYGWIN__) #include #include #else @@ -78,8 +78,8 @@ #ifndef HAVE_SOCKET #error "We can't compile without socket() support!" #endif - #endif + #ifdef USE_LIBIDN #include #include @@ -95,7 +95,7 @@ void idn_free (void *ptr); /* prototype from idn-free.h, not provided by instead */ #define idn_free(x) (free)(x) #endif -#endif +#endif /* USE_LIBIDN */ #include "urldata.h" #include "netrc.h"