--HG-- branch : develop
@ -22,6 +22,18 @@
#ifdef NL_OS_WINDOWS // for win32 os only
#ifndef WIN32_LEAN_AND_MEAN
# define WIN32_LEAN_AND_MEAN
#endif
#ifndef _WIN32_WINDOWS
# define _WIN32_WINDOWS 0x0410
#ifndef WINVER
# define WINVER 0x0400
#ifndef NOMINMAX
# define NOMINMAX
#include <windows.h>
@ -27,6 +27,18 @@
#include "nel/misc/mem_stream.h"
#include "nel/misc/dummy_window.h"
namespace NLMISC
@ -21,8 +21,16 @@
#ifdef NL_OS_WINDOWS
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
#ifndef NL_COMP_MINGW
@ -43,20 +43,7 @@
#else //NL_USE_THREAD_COTASK
// some platform specifics
#if defined (NL_OS_WINDOWS)
//# define _WIN32_WINNT 0x0500
# define NL_WIN_CALLBACK CALLBACK
// Visual .NET won't allow Fibers for a Windows version older than 2000. However the basic features are sufficient for us, we want to compile them for all Windows >= 95
# if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x0400)
# ifdef _WIN32_WINNT
# undef _WIN32_WINNT
# endif
# define _WIN32_WINNT 0x0400
# ifndef NL_COMP_MINGW
# include <windows.h>
#elif defined (NL_OS_UNIX)
# define NL_WIN_CALLBACK
# include <ucontext.h>
@ -20,10 +20,6 @@
#include "nel/misc/common.h"
# include <io.h>
# include <tchar.h>
#elif defined NL_OS_UNIX
@ -19,11 +19,7 @@
#include "nel/misc/log.h"
# include <process.h>
#else
# include <unistd.h>
@ -24,10 +24,6 @@
#include "nel/misc/debug.h"
# include <imagehlp.h>
# pragma comment(lib, "imagehlp.lib")
# ifdef NL_OS_WIN64
@ -25,10 +25,6 @@
#include "nel/misc/xml_pack.h"
# include <sys/types.h>
# include <sys/stat.h>
# include <direct.h>
@ -23,10 +23,6 @@
#include "nel/misc/path.h"
# include <windowsx.h>
# include <winuser.h>
#endif // NL_OS_WINDOWS
@ -19,12 +19,7 @@
#include "nel/misc/shared_memory.h"
#ifndef NL_OS_WINDOWS
# include <sys/ipc.h>
# include <sys/shm.h>
@ -43,6 +43,7 @@
#include <vector>
#ifdef _WIN32
@ -19,10 +19,6 @@
#include "nel/misc/system_info.h"
# include <WinNT.h>
# include <intrin.h>
@ -18,11 +18,6 @@
#include "nel/misc/system_utils.h"
#define NOMINMAX
#ifdef _WIN32_WINNT_WIN7
// only supported by Windows 7 Platform SDK
#include <ShObjIdl.h>
@ -20,12 +20,7 @@
#include "nel/misc/sstring.h"
#include "nel/misc/thread.h"
#if defined (NL_OS_UNIX)
# include <sys/time.h>
@ -20,8 +20,6 @@
#ifdef DEBUG_NEW
#define new DEBUG_NEW
@ -18,10 +18,6 @@
#include "nel/misc/win_displayer.h"
#include <windowsx.h>
#include <winuser.h>
#include <cstring>
@ -22,10 +22,6 @@
#include "nel/misc/event_server.h"
/**