summaryrefslogtreecommitdiff
path: root/setup_native
diff options
context:
space:
mode:
Diffstat (limited to 'setup_native')
-rw-r--r--setup_native/source/win32/customactions/tools/checkversion.cxx1
-rw-r--r--setup_native/source/win32/customactions/tools/seterror.cxx1
2 files changed, 2 insertions, 0 deletions
diff --git a/setup_native/source/win32/customactions/tools/checkversion.cxx b/setup_native/source/win32/customactions/tools/checkversion.cxx
index fdd3d91242ee..2ad7267b571f 100644
--- a/setup_native/source/win32/customactions/tools/checkversion.cxx
+++ b/setup_native/source/win32/customactions/tools/checkversion.cxx
@@ -22,6 +22,7 @@
#ifdef _MSC_VER
#pragma warning(push,1) // disable warnings within system headers
#endif
+#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <msiquery.h>
#ifdef _MSC_VER
diff --git a/setup_native/source/win32/customactions/tools/seterror.cxx b/setup_native/source/win32/customactions/tools/seterror.cxx
index 09aae2202ac7..d7aa3639fb00 100644
--- a/setup_native/source/win32/customactions/tools/seterror.cxx
+++ b/setup_native/source/win32/customactions/tools/seterror.cxx
@@ -22,6 +22,7 @@
#ifdef _MSC_VER
#pragma warning(push,1) // disable warnings within system headers
#endif
+#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#ifdef _MSC_VER
#pragma warning(pop)