more explicit checks.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4340 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2013-05-07 19:37:37 +00:00
parent 9c163d60aa
commit 61e1eee0e9

View file

@ -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