From 767d91ce6db6f59a7d105daf04b5dae93b854ad5 Mon Sep 17 00:00:00 2001 From: kervala Date: Sun, 14 Feb 2016 19:16:22 +0100 Subject: [PATCH] Fixed: Set _WIN32_WINNT used by WinSock for IPv6 --HG-- branch : develop --- code/nel/src/net/stdnet.h | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/code/nel/src/net/stdnet.h b/code/nel/src/net/stdnet.h index b09df1c4f..16e87c9f8 100644 --- a/code/nel/src/net/stdnet.h +++ b/code/nel/src/net/stdnet.h @@ -14,17 +14,24 @@ // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see . +#ifndef NL_STDNET_H +#define NL_STDNET_H + #include "nel/misc/types_nl.h" #ifdef NL_OS_WINDOWS -# define _WIN32_WINDOWS 0x0500 +# define WIN32_LEAN_AND_MEAN +# define _WIN32_WINDOWS 0x0500 +# ifndef _WIN32_WINNT +# define _WIN32_WINNT 0x0500 +# endif # ifndef NL_COMP_MINGW -# define WINVER 0x0500 +# define WINVER 0x0500 # define NOMINMAX # endif -# include -# include -#endif // NL_OS_WINDOWS +# include +# include +#endif #include #include @@ -49,7 +56,6 @@ #include #include "nel/misc/debug.h" - #include "nel/misc/common.h" #include "nel/misc/stream.h" #include "nel/misc/time_nl.h" @@ -57,3 +63,5 @@ #include "nel/misc/variable.h" #include "nel/misc/mem_stream.h" #include "nel/misc/hierarchical_timer.h" + +#endif