From 760a7d9bb6b99988bca9d5419f748004d82e7b58 Mon Sep 17 00:00:00 2001 From: havoc Date: Mon, 2 Nov 2009 00:43:04 +0000 Subject: [PATCH] fix compatibility with old windows versions when USE_WSPIAPI_H is defined git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9409 d7cf8633-e32d-0410-b094-e92efae38249 --- lhnet.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/lhnet.c b/lhnet.c index 7da46a74..8b71ed91 100644 --- a/lhnet.c +++ b/lhnet.c @@ -3,10 +3,13 @@ #ifdef WIN32 // Windows XP or higher is required for getaddrinfo, but the inclusion of wspiapi provides fallbacks for older versions -#define _WIN32_WINNT 0x0501 -#include -#include -//#include +# define _WIN32_WINNT 0x0501 +# include +# ifdef USE_WSPIAPI_H +# include +# else +# include +# endif #endif #ifndef STANDALONETEST -- 2.39.2