From 744c346b3f214a9b5c24e595fca0a57163663cf5 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Wed, 12 Jan 2011 12:39:24 +0000 Subject: [PATCH] net_sys.h: the new MS SDKs define EWOULDBLOCK and ECONNREFUSED, so we must undefine them before redefining. git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@397 af15c1b1-3010-417e-b628-4374ebc0bcbd --- Quake/net_sys.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Quake/net_sys.h b/Quake/net_sys.h index b7fee847..508edd20 100644 --- a/Quake/net_sys.h +++ b/Quake/net_sys.h @@ -142,7 +142,11 @@ typedef int socklen_t; typedef SOCKET sys_socket_t; #define SOCKETERRNO WSAGetLastError() +/* the new MS SDKs define the following two, + * so we must undefine them before redefining. */ +#undef EWOULDBLOCK #define EWOULDBLOCK WSAEWOULDBLOCK +#undef ECONNREFUSED #define ECONNREFUSED WSAECONNREFUSED /* must #include "wsaerror.h" for this : */ #define socketerror(x) __WSAE_StrError((x))