From 61e1eee0e9e4af221c60cb51a30080c6bb4e91f2 Mon Sep 17 00:00:00 2001 From: Spoike Date: Tue, 7 May 2013 19:37:37 +0000 Subject: [PATCH] more explicit checks. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4340 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/common/netinc.h | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/engine/common/netinc.h b/engine/common/netinc.h index 6622fc8b4..67c2f30e5 100644 --- a/engine/common/netinc.h +++ b/engine/common/netinc.h @@ -100,16 +100,30 @@ #define IPV6_V6ONLY 27 #endif - #if (_MSC_VER >= 1600) + #ifdef EADDRNOTAVAIL #undef EADDRNOTAVAIL + #endif + #ifdef EAFNOSUPPORT #undef EAFNOSUPPORT + #endif + #ifdef ECONNABORTED #undef ECONNABORTED + #endif + #ifdef ECONNREFUSED #undef ECONNREFUSED + #endif + #ifdef ECONNREFUSED #undef ECONNREFUSED + #endif + #ifdef EMSGSIZE #undef EMSGSIZE + #endif + #ifdef EWOULDBLOCK #undef EWOULDBLOCK #endif - #undef EACCES + #ifdef EACCES + #undef EACCES + #endif #define EWOULDBLOCK WSAEWOULDBLOCK #define EMSGSIZE WSAEMSGSIZE