X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=lhnet.c;h=3ac17a0aad880a6b4d912345ca7626d3e1ee268f;hb=cf8dfc912d76d0a26c5d80202fb0b8089df0901f;hp=20781f820af82ef0c2b83eaf0da8cf32e8c8ac76;hpb=16d3fd6a45da457c6f12dd71134f1f572fd1096c;p=xonotic%2Fdarkplaces.git diff --git a/lhnet.c b/lhnet.c index 20781f82..3ac17a0a 100644 --- a/lhnet.c +++ b/lhnet.c @@ -57,6 +57,9 @@ #include "lhnet.h" #if defined(WIN32) +// as of Visual Studio 2015, EWOULDBLOCK and ECONNREFUSED are real things, with different values than we want when talking to WinSock, so we have to undef them here or change the rest of the code. +#undef EWOULDBLOCK +#undef ECONNREFUSED #define EWOULDBLOCK WSAEWOULDBLOCK #define ECONNREFUSED WSAECONNREFUSED