ws2_32: s/#if/#ifdef/ so it still works if HAVE_XXX is not defined.

This commit is contained in:
Francois Gouget 2008-03-06 12:33:25 +01:00 committed by Alexandre Julliard
parent e0552c1bc6
commit f5ea0fd2e4
1 changed files with 2 additions and 2 deletions

View File

@ -3390,7 +3390,7 @@ static int convert_eai_u2w(int unixret) {
*/ */
int WINAPI WS_getaddrinfo(LPCSTR nodename, LPCSTR servname, const struct WS_addrinfo *hints, struct WS_addrinfo **res) int WINAPI WS_getaddrinfo(LPCSTR nodename, LPCSTR servname, const struct WS_addrinfo *hints, struct WS_addrinfo **res)
{ {
#if HAVE_GETADDRINFO #ifdef HAVE_GETADDRINFO
struct addrinfo *unixaires = NULL; struct addrinfo *unixaires = NULL;
int result; int result;
struct addrinfo unixhints, *punixhints = NULL; struct addrinfo unixhints, *punixhints = NULL;
@ -3507,7 +3507,7 @@ int WINAPI GetAddrInfoW(LPCWSTR nodename, LPCWSTR servname, const ADDRINFOW *hin
int WINAPI WS_getnameinfo(const SOCKADDR *sa, WS_socklen_t salen, PCHAR host, int WINAPI WS_getnameinfo(const SOCKADDR *sa, WS_socklen_t salen, PCHAR host,
DWORD hostlen, PCHAR serv, DWORD servlen, INT flags) DWORD hostlen, PCHAR serv, DWORD servlen, INT flags)
{ {
#if HAVE_GETNAMEINFO #ifdef HAVE_GETNAMEINFO
int ret; int ret;
union generic_unix_sockaddr sa_u; union generic_unix_sockaddr sa_u;
unsigned int size; unsigned int size;