|
|
|
@ -17,20 +17,11 @@
|
|
|
|
|
#ifndef NL_STDNET_H
|
|
|
|
|
#define NL_STDNET_H
|
|
|
|
|
|
|
|
|
|
#include "nel/misc/types_nl.h"
|
|
|
|
|
|
|
|
|
|
#ifdef NL_OS_WINDOWS
|
|
|
|
|
# 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 NOMINMAX
|
|
|
|
|
# endif
|
|
|
|
|
# include <WinSock2.h>
|
|
|
|
|
# include <Windows.h>
|
|
|
|
|
#if defined(_MSC_VER) && defined(_DEBUG)
|
|
|
|
|
#define _CRTDBG_MAP_ALLOC
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
#include <crtdbg.h>
|
|
|
|
|
#define DEBUG_NEW new(_NORMAL_BLOCK, __FILE__, __LINE__)
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#include <map>
|
|
|
|
@ -55,6 +46,7 @@
|
|
|
|
|
|
|
|
|
|
#include <errno.h>
|
|
|
|
|
|
|
|
|
|
#include "nel/misc/types_nl.h"
|
|
|
|
|
#include "nel/misc/debug.h"
|
|
|
|
|
#include "nel/misc/common.h"
|
|
|
|
|
#include "nel/misc/stream.h"
|
|
|
|
@ -64,4 +56,18 @@
|
|
|
|
|
#include "nel/misc/mem_stream.h"
|
|
|
|
|
#include "nel/misc/hierarchical_timer.h"
|
|
|
|
|
|
|
|
|
|
#ifdef NL_OS_WINDOWS
|
|
|
|
|
# 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 NOMINMAX
|
|
|
|
|
# endif
|
|
|
|
|
# include <WinSock2.h>
|
|
|
|
|
# include <Windows.h>
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|