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

Alexandre Julliard julliard at winehq.org
Thu Mar 6 11:08:36 CST 2008


Module: wine
Branch: master
Commit: f5ea0fd2e47f30991a9aef9d75eca42d5b350c70
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f5ea0fd2e47f30991a9aef9d75eca42d5b350c70

Author: Francois Gouget <fgouget at free.fr>
Date:   Thu Mar  6 12:33:25 2008 +0100

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

---

 dlls/ws2_32/socket.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c
index 502f309..a06aabf 100644
--- a/dlls/ws2_32/socket.c
+++ b/dlls/ws2_32/socket.c
@@ -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)
 {
-#if HAVE_GETADDRINFO
+#ifdef HAVE_GETADDRINFO
     struct addrinfo *unixaires = NULL;
     int   result;
     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,
                           DWORD hostlen, PCHAR serv, DWORD servlen, INT flags)
 {
-#if HAVE_GETNAMEINFO
+#ifdef HAVE_GETNAMEINFO
     int ret;
     union generic_unix_sockaddr sa_u;
     unsigned int size;




More information about the wine-cvs mailing list