Cleanup Windows includes

--HG--
branch : develop
This commit is contained in:
kaetemi 2015-02-24 12:47:54 +01:00
parent 50e11b0536
commit d9dd425dc6
4 changed files with 13 additions and 7 deletions

View file

@ -20,6 +20,7 @@
#include "nel/misc/common.h"
#ifdef NL_OS_WINDOWS
# include <ShellAPI.h>
# include <io.h>
# include <tchar.h>
#elif defined NL_OS_UNIX

View file

@ -42,7 +42,9 @@
#include <utility>
#include <vector>
#ifdef _WIN32
#include <nel/misc/types_nl.h>
#ifdef NL_OS_WINDOWS
# define WIN32_LEAN_AND_MEAN
# define _WIN32_WINDOWS 0x0410
# ifndef _WIN32_WINNT
@ -53,7 +55,7 @@
# define NOMINMAX
# endif
# include <WinSock2.h>
# include <windows.h>
# include <Windows.h>
#endif
#endif // NL_STDMISC_H

View file

@ -18,6 +18,7 @@
#include "nel/misc/system_utils.h"
#ifdef NL_OS_WINDOWS
# include <ObjBase.h>
# ifdef _WIN32_WINNT_WIN7
// only supported by Windows 7 Platform SDK
# include <ShObjIdl.h>

View file

@ -20,7 +20,9 @@
#include "nel/misc/sstring.h"
#include "nel/misc/thread.h"
#if defined (NL_OS_UNIX)
#ifdef NL_OS_WINDOWS
# include <MMSystem.h>
#elif defined (NL_OS_UNIX)
# include <sys/time.h>
# include <unistd.h>
#endif