From 7bbad4b218ce0d4d73ade493cb9baf495112f39d Mon Sep 17 00:00:00 2001 From: havoc Date: Fri, 9 Apr 2010 18:59:41 +0000 Subject: [PATCH] patch from Ozkan Sezer for compatibility with mingw64 (changed #include order) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10074 d7cf8633-e32d-0410-b094-e92efae38249 --- lhnet.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/lhnet.c b/lhnet.c index 5d60a213..99b9f144 100644 --- a/lhnet.c +++ b/lhnet.c @@ -1,17 +1,17 @@ // Written by Forest Hale 2003-06-15 and placed into public domain. -#ifdef SUPPORTIPV6 #ifdef WIN32 +# ifdef SUPPORTIPV6 // Windows XP or higher is required for getaddrinfo, but the inclusion of wspiapi provides fallbacks for older versions # define _WIN32_WINNT 0x0501 +# endif # include # include # ifdef USE_WSPIAPI_H # include # endif #endif -#endif #ifndef STANDALONETEST #include "quakedef.h" @@ -21,10 +21,7 @@ #include #include #include -#ifdef WIN32 -#include -#include -#else +#ifndef WIN32 #include #include #include -- 2.39.2