Define WIN32_LEAN_AND_MEAN before including windows.h.

This will cause our code to include less functionality, but might on the other hand fasten up the compilation.

svn-id: r50346
This commit is contained in:
Johannes Schickel 2010-06-26 21:55:52 +00:00
parent af755b0b3d
commit 09b4f7cbed
5 changed files with 5 additions and 0 deletions

View file

@ -24,6 +24,7 @@
#if defined(WIN32) && !defined(_WIN32_WCE) #if defined(WIN32) && !defined(_WIN32_WCE)
#define WIN32_LEAN_AND_MEAN
#include <windows.h> #include <windows.h>
// winnt.h defines ARRAYSIZE, but we want our own one... // winnt.h defines ARRAYSIZE, but we want our own one...
#undef ARRAYSIZE #undef ARRAYSIZE

View file

@ -28,6 +28,7 @@
// otherwise we will get errors about the windows headers redefining // otherwise we will get errors about the windows headers redefining
// "ARRAYSIZE" for example. // "ARRAYSIZE" for example.
#if defined(WIN32) && !defined(__SYMBIAN32__) #if defined(WIN32) && !defined(__SYMBIAN32__)
#define WIN32_LEAN_AND_MEAN
#include <windows.h> #include <windows.h>
// winnt.h defines ARRAYSIZE, but we want our own one... // winnt.h defines ARRAYSIZE, but we want our own one...
#undef ARRAYSIZE #undef ARRAYSIZE

View file

@ -24,6 +24,7 @@
*/ */
#if defined(WIN32) #if defined(WIN32)
#define WIN32_LEAN_AND_MEAN
#include <windows.h> #include <windows.h>
// winnt.h defines ARRAYSIZE, but we want our own one... - this is needed before including util.h // winnt.h defines ARRAYSIZE, but we want our own one... - this is needed before including util.h
#undef ARRAYSIZE #undef ARRAYSIZE

View file

@ -30,6 +30,7 @@
#include "common/debug.h" #include "common/debug.h"
#include "common/fs.h" #include "common/fs.h"
#define WIN32_LEAN_AND_MEAN
#include <windows.h> #include <windows.h>

View file

@ -23,6 +23,7 @@
*/ */
#if defined(WIN32) && !defined(_WIN32_WCE) && !defined(__SYMBIAN32__) #if defined(WIN32) && !defined(_WIN32_WCE) && !defined(__SYMBIAN32__)
#define WIN32_LEAN_AND_MEAN
#include <windows.h> #include <windows.h>
#include <direct.h> #include <direct.h>
// winnt.h defines ARRAYSIZE, but we want our own one... // winnt.h defines ARRAYSIZE, but we want our own one...