From: Yang Tse Date: Thu, 4 Aug 2011 18:47:31 +0000 (+0200) Subject: curl.h: untangle a preprocessor block, removing duplicate sys/types.h inclusion X-Git-Tag: curl-7_22_0~177 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b56bbabee0b49abef4d163b203f6e2e4f6651066;p=thirdparty%2Fcurl.git curl.h: untangle a preprocessor block, removing duplicate sys/types.h inclusion --- diff --git a/include/curl/curl.h b/include/curl/curl.h index 0dc934bfb6..ab64fe25ad 100644 --- a/include/curl/curl.h +++ b/include/curl/curl.h @@ -55,18 +55,17 @@ #include #include -#if defined(WIN32) && !defined(_WIN32_WCE) && !defined(__GNUC__) && \ - !defined(__CYGWIN__) || defined(__MINGW32__) +#if defined(WIN32) && !defined(_WIN32_WCE) && !defined(__CYGWIN__) #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 */ #include #include #endif -#else +#endif /* HP-UX systems version 9, 10 and 11 lack sys/select.h and so does oldish - libc5-based Linux systems. Only include it on system that are known to + libc5-based Linux systems. Only include it on systems that are known to require it! */ #if defined(_AIX) || defined(__NOVELL_LIBC__) || defined(__NetBSD__) || \ defined(__minix) || defined(__SYMBIAN32__) || defined(__INTEGRITY) || \ @@ -75,14 +74,13 @@ #include #endif -#ifndef _WIN32_WCE +#if !defined(WIN32) && !defined(_WIN32_WCE) #include #endif + #if !defined(WIN32) && !defined(__WATCOMC__) && !defined(__VXWORKS__) #include #endif -#include -#endif #ifdef __BEOS__ #include