From afeff9102c2935139de4efd40fd2286dce396706 Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Sun, 17 Sep 2017 23:30:37 +0300 Subject: Use even more WIN32_LEAN_AND_MEAN Change-Id: I538fe5b41156366e0e87b3a93e58a3947afd18f5 Reviewed-on: https://gerrit.libreoffice.org/42398 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- sal/osl/w32/backtrace.cxx | 3 +++ sal/osl/w32/dllentry.cxx | 14 ++++---------- 2 files changed, 7 insertions(+), 10 deletions(-) (limited to 'sal/osl/w32') diff --git a/sal/osl/w32/backtrace.cxx b/sal/osl/w32/backtrace.cxx index 574e4a450f48..b8866322e940 100644 --- a/sal/osl/w32/backtrace.cxx +++ b/sal/osl/w32/backtrace.cxx @@ -12,6 +12,9 @@ #include #include +#if !defined WIN32_LEAN_AND_MEAN +# define WIN32_LEAN_AND_MEAN +#endif #include #include #include diff --git a/sal/osl/w32/dllentry.cxx b/sal/osl/w32/dllentry.cxx index 0bce302e935a..bc575ac5b7d8 100644 --- a/sal/osl/w32/dllentry.cxx +++ b/sal/osl/w32/dllentry.cxx @@ -17,19 +17,13 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifdef _MSC_VER -#pragma warning(push,1) /* disable warnings within system headers */ -#endif -#include -#ifdef _MSC_VER -#pragma warning(pop) +#include +#include +#include +#include #ifdef _DEBUG #include #endif -#endif -#include -#include -#include #include #include #include -- cgit