diff options
author | Yang Tse <yangsita@gmail.com> | 2006-08-04 01:13:24 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2006-08-04 01:13:24 +0000 |
commit | 1a8709fa8d21e164b86137bb5b7b4d7bd9eeb46b (patch) | |
tree | ce702b72f507acbcce6063de341f7b7f9c6ddb57 /setup.h | |
parent | fb5decf74031bbde5b750b33f04687381c5ea178 (diff) | |
download | c-ares-1a8709fa8d21e164b86137bb5b7b4d7bd9eeb46b.tar.gz c-ares-1a8709fa8d21e164b86137bb5b7b4d7bd9eeb46b.tar.bz2 c-ares-1a8709fa8d21e164b86137bb5b7b4d7bd9eeb46b.zip |
Avoid redundant check. configure script takes care of not defining
HAVE_WINDOWS_H, HAVE_WINSOCK_H, HAVE_WINSOCK2_H, neither
HAVE_WS2TCPIP_H when __CYGWIN__ is defined.
Diffstat (limited to 'setup.h')
-rw-r--r-- | setup.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -47,10 +47,12 @@ * 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 when __CYGWIN__ is defined. + * never be included when __CYGWIN__ is defined. configure script takes + * care of this, not defining HAVE_WINDOWS_H, HAVE_WINSOCK_H, HAVE_WINSOCK2_H, + * neither HAVE_WS2TCPIP_H when __CYGWIN__ is defined. */ -#if defined(HAVE_WINDOWS_H) && !defined(__CYGWIN__) +#ifdef HAVE_WINDOWS_H # ifndef WIN32_LEAN_AND_MEAN # define WIN32_LEAN_AND_MEAN # endif |