From f55924b3e04db8ca63e01c0d59aac73442843845 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Fri, 4 Aug 2006 01:13:24 +0000 Subject: 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. --- ares/setup.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ares/setup.h') diff --git a/ares/setup.h b/ares/setup.h index f3ced3ed8..70af3be3c 100644 --- a/ares/setup.h +++ b/ares/setup.h @@ -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. ) 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 -- cgit v1.2.3