diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2017-09-18 17:34:28 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2017-09-18 19:24:31 +0200 |
commit | aaa26a58ba0f14eab652e0ba7f8d8e66fa479582 (patch) | |
tree | 34299e87165aa7cc6c38c357b7e4deddaef76816 /dtrans | |
parent | 3c1f44c91091205512098bb4f1d56333c20a1f8b (diff) |
Some more WIN32_LEAN_AND_MEAN
Change-Id: Iadb0ebb66809c192fb817b8c7cf2f8cdb4d0b874
Reviewed-on: https://gerrit.libreoffice.org/42419
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'dtrans')
-rw-r--r-- | dtrans/source/win32/clipb/WinClipbImpl.cxx | 3 | ||||
-rw-r--r-- | dtrans/source/win32/clipb/WinClipbImpl.hxx | 3 | ||||
-rw-r--r-- | dtrans/source/win32/dtobj/DTransHelper.hxx | 4 | ||||
-rw-r--r-- | dtrans/source/win32/dtobj/DataFmtTransl.cxx | 3 | ||||
-rw-r--r-- | dtrans/source/win32/dtobj/DataFmtTransl.hxx | 4 | ||||
-rw-r--r-- | dtrans/source/win32/dtobj/Fetc.hxx | 4 | ||||
-rw-r--r-- | dtrans/source/win32/dtobj/FetcList.hxx | 3 | ||||
-rw-r--r-- | dtrans/source/win32/dtobj/FmtFilter.hxx | 4 | ||||
-rw-r--r-- | dtrans/source/win32/dtobj/XNotifyingDataObject.hxx | 5 | ||||
-rw-r--r-- | dtrans/source/win32/dtobj/XTDataObject.cxx | 3 | ||||
-rw-r--r-- | dtrans/source/win32/dtobj/XTDataObject.hxx | 3 | ||||
-rw-r--r-- | dtrans/source/win32/ftransl/ftransl.hxx | 8 | ||||
-rw-r--r-- | dtrans/source/win32/misc/ImplHelper.cxx | 3 | ||||
-rw-r--r-- | dtrans/source/win32/misc/ImplHelper.hxx | 4 |
14 files changed, 45 insertions, 9 deletions
diff --git a/dtrans/source/win32/clipb/WinClipbImpl.cxx b/dtrans/source/win32/clipb/WinClipbImpl.cxx index 548a7ff4c5aa..c5030883900c 100644 --- a/dtrans/source/win32/clipb/WinClipbImpl.cxx +++ b/dtrans/source/win32/clipb/WinClipbImpl.cxx @@ -31,6 +31,9 @@ #if defined _MSC_VER #pragma warning(push,1) #endif +#if !defined WIN32_LEAN_AND_MEAN +# define WIN32_LEAN_AND_MEAN +#endif #include <windows.h> #include <ole2.h> #include <objidl.h> diff --git a/dtrans/source/win32/clipb/WinClipbImpl.hxx b/dtrans/source/win32/clipb/WinClipbImpl.hxx index 0b74185ec52d..d72b5aef8b60 100644 --- a/dtrans/source/win32/clipb/WinClipbImpl.hxx +++ b/dtrans/source/win32/clipb/WinClipbImpl.hxx @@ -30,6 +30,9 @@ #if defined _MSC_VER #pragma warning(push,1) #endif +#if !defined WIN32_LEAN_AND_MEAN +# define WIN32_LEAN_AND_MEAN +#endif #include <windows.h> #if defined _MSC_VER #pragma warning(pop) diff --git a/dtrans/source/win32/dtobj/DTransHelper.hxx b/dtrans/source/win32/dtobj/DTransHelper.hxx index 2143c571f047..84d34e200db2 100644 --- a/dtrans/source/win32/dtobj/DTransHelper.hxx +++ b/dtrans/source/win32/dtobj/DTransHelper.hxx @@ -23,7 +23,11 @@ #if defined _MSC_VER #pragma warning(push,1) #endif +#if !defined WIN32_LEAN_AND_MEAN +# define WIN32_LEAN_AND_MEAN +#endif #include <windows.h> +#include <objidl.h> #if defined _MSC_VER #pragma warning(pop) #endif diff --git a/dtrans/source/win32/dtobj/DataFmtTransl.cxx b/dtrans/source/win32/dtobj/DataFmtTransl.cxx index c35cc42f43a6..9c6f40047967 100644 --- a/dtrans/source/win32/dtobj/DataFmtTransl.cxx +++ b/dtrans/source/win32/dtobj/DataFmtTransl.cxx @@ -33,6 +33,9 @@ #pragma warning(push,1) #pragma warning(disable:4917) #endif +#if !defined WIN32_LEAN_AND_MEAN +# define WIN32_LEAN_AND_MEAN +#endif #include <windows.h> #include <shlobj.h> #if defined _MSC_VER diff --git a/dtrans/source/win32/dtobj/DataFmtTransl.hxx b/dtrans/source/win32/dtobj/DataFmtTransl.hxx index 5412d7bdd901..1d0231f4714c 100644 --- a/dtrans/source/win32/dtobj/DataFmtTransl.hxx +++ b/dtrans/source/win32/dtobj/DataFmtTransl.hxx @@ -29,7 +29,11 @@ #if defined _MSC_VER #pragma warning(push,1) #endif +#if !defined WIN32_LEAN_AND_MEAN +# define WIN32_LEAN_AND_MEAN +#endif #include <windows.h> +#include <objidl.h> #if defined _MSC_VER #pragma warning(pop) #endif diff --git a/dtrans/source/win32/dtobj/Fetc.hxx b/dtrans/source/win32/dtobj/Fetc.hxx index 7513ebd62aec..f4b7b62fc372 100644 --- a/dtrans/source/win32/dtobj/Fetc.hxx +++ b/dtrans/source/win32/dtobj/Fetc.hxx @@ -25,7 +25,11 @@ #if defined _MSC_VER #pragma warning(push,1) #endif +#if !defined WIN32_LEAN_AND_MEAN +# define WIN32_LEAN_AND_MEAN +#endif #include <windows.h> +#include <objidl.h> #if defined _MSC_VER #pragma warning(pop) #endif diff --git a/dtrans/source/win32/dtobj/FetcList.hxx b/dtrans/source/win32/dtobj/FetcList.hxx index 9f70d0976ab2..1015729ad6c2 100644 --- a/dtrans/source/win32/dtobj/FetcList.hxx +++ b/dtrans/source/win32/dtobj/FetcList.hxx @@ -28,6 +28,9 @@ #if defined _MSC_VER #pragma warning(push,1) #endif +#if !defined WIN32_LEAN_AND_MEAN +# define WIN32_LEAN_AND_MEAN +#endif #include <windows.h> #if defined _MSC_VER #pragma warning(pop) diff --git a/dtrans/source/win32/dtobj/FmtFilter.hxx b/dtrans/source/win32/dtobj/FmtFilter.hxx index f56dce98fec2..da14a374c979 100644 --- a/dtrans/source/win32/dtobj/FmtFilter.hxx +++ b/dtrans/source/win32/dtobj/FmtFilter.hxx @@ -27,7 +27,11 @@ #if defined _MSC_VER #pragma warning(push,1) #endif +#if !defined WIN32_LEAN_AND_MEAN +# define WIN32_LEAN_AND_MEAN +#endif #include <windows.h> +#include <objidl.h> #if defined _MSC_VER #pragma warning(pop) #endif diff --git a/dtrans/source/win32/dtobj/XNotifyingDataObject.hxx b/dtrans/source/win32/dtobj/XNotifyingDataObject.hxx index 4e916ce28682..a6a8bd075e7f 100644 --- a/dtrans/source/win32/dtobj/XNotifyingDataObject.hxx +++ b/dtrans/source/win32/dtobj/XNotifyingDataObject.hxx @@ -26,8 +26,11 @@ #if defined _MSC_VER #pragma warning(push,1) #endif -#include <objidl.h> +#if !defined WIN32_LEAN_AND_MEAN +# define WIN32_LEAN_AND_MEAN +#endif #include <windows.h> +#include <objidl.h> #if defined _MSC_VER #pragma warning(pop) #endif diff --git a/dtrans/source/win32/dtobj/XTDataObject.cxx b/dtrans/source/win32/dtobj/XTDataObject.cxx index c3299b6fc0d2..f9e681a4b399 100644 --- a/dtrans/source/win32/dtobj/XTDataObject.cxx +++ b/dtrans/source/win32/dtobj/XTDataObject.cxx @@ -36,6 +36,9 @@ #pragma warning(push,1) #pragma warning(disable:4917) #endif +#if !defined WIN32_LEAN_AND_MEAN +# define WIN32_LEAN_AND_MEAN +#endif #include <windows.h> #include <shlobj.h> #if defined _MSC_VER diff --git a/dtrans/source/win32/dtobj/XTDataObject.hxx b/dtrans/source/win32/dtobj/XTDataObject.hxx index 5078c3fd74da..4effb8e6a89c 100644 --- a/dtrans/source/win32/dtobj/XTDataObject.hxx +++ b/dtrans/source/win32/dtobj/XTDataObject.hxx @@ -30,6 +30,9 @@ #if defined _MSC_VER #pragma warning(push,1) #endif +#if !defined WIN32_LEAN_AND_MEAN +# define WIN32_LEAN_AND_MEAN +#endif #include <windows.h> #include <ole2.h> #include <objidl.h> diff --git a/dtrans/source/win32/ftransl/ftransl.hxx b/dtrans/source/win32/ftransl/ftransl.hxx index 6859e0d53774..c93cd8096d5d 100644 --- a/dtrans/source/win32/ftransl/ftransl.hxx +++ b/dtrans/source/win32/ftransl/ftransl.hxx @@ -31,14 +31,6 @@ #include <vector> -#if defined _MSC_VER -#pragma warning(push,1) -#endif -#include <windows.h> -#if defined _MSC_VER -#pragma warning(pop) -#endif - class CDataFormatTranslatorUNO : public cppu::WeakImplHelper< css::datatransfer::XDataFormatTranslator, css::lang::XServiceInfo > diff --git a/dtrans/source/win32/misc/ImplHelper.cxx b/dtrans/source/win32/misc/ImplHelper.cxx index c5ffcef57f60..8047ffc9a424 100644 --- a/dtrans/source/win32/misc/ImplHelper.cxx +++ b/dtrans/source/win32/misc/ImplHelper.cxx @@ -26,6 +26,9 @@ #if defined _MSC_VER #pragma warning(push,1) #endif +#if !defined WIN32_LEAN_AND_MEAN +# define WIN32_LEAN_AND_MEAN +#endif #include <windows.h> #if defined _MSC_VER #pragma warning(pop) diff --git a/dtrans/source/win32/misc/ImplHelper.hxx b/dtrans/source/win32/misc/ImplHelper.hxx index 0d0097fbcb5b..3ba825062b4b 100644 --- a/dtrans/source/win32/misc/ImplHelper.hxx +++ b/dtrans/source/win32/misc/ImplHelper.hxx @@ -26,7 +26,11 @@ #if defined _MSC_VER #pragma warning(push,1) #endif +#if !defined WIN32_LEAN_AND_MEAN +# define WIN32_LEAN_AND_MEAN +#endif #include <windows.h> +#include <objidl.h> #if defined _MSC_VER #pragma warning(pop) #endif |