diff options
author | glx <glx@openttd.org> | 2008-05-16 17:53:19 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2008-05-16 17:53:19 +0000 |
commit | 5ea41a57b8c3fde52e5fb0cb015141671d650350 (patch) | |
tree | aef80c3e1b37c183a7553178130069d95f8d8b5d /src | |
parent | 3b97cc2e3017f4f0c87912f9b9c80f6590c28310 (diff) | |
download | openttd-5ea41a57b8c3fde52e5fb0cb015141671d650350.tar.xz |
(svn r13122) -Fix: WIN32_LEAN_AND_MEAN define is needed for all WIN32 compilers
Diffstat (limited to 'src')
-rw-r--r-- | src/stdafx.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/stdafx.h b/src/stdafx.h index 80c60f1c9..53289c438 100644 --- a/src/stdafx.h +++ b/src/stdafx.h @@ -145,6 +145,10 @@ #include <malloc.h> // alloca() #endif +#if defined(WIN32) + #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers +#endif + /* Stuff for MSVC */ #if defined(_MSC_VER) #pragma once @@ -158,7 +162,6 @@ #endif #define _WIN32_IE_ 0x0401 // 4.01 (win98 and NT4SP5+) - #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers #pragma warning(disable: 4244) // 'conversion' conversion from 'type1' to 'type2', possible loss of data #pragma warning(disable: 4761) // integral size mismatch in argument : conversion supplied #pragma warning(disable: 4200) // nonstandard extension used : zero-sized array in struct/union |