summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Adler <fork@madler.net>2022-10-03 08:47:03 -0700
committerHans Kristian Rosbach <hk-github@circlestorm.org>2023-03-17 21:27:56 +0100
commit39bac283533d5e9ac01a5e380679af9b091b9938 (patch)
tree51d86749a178286657ab6f79ad5287eef141c5b3
parent261fc21732f40bb9fc1064b32a2a4fd5e4b918d8 (diff)
Add WIN32_LEAN_AND_MEAN for windows.h include.
-rw-r--r--zconf.h.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/zconf.h.in b/zconf.h.in
index fec44c0..c905886 100644
--- a/zconf.h.in
+++ b/zconf.h.in
@@ -85,6 +85,9 @@
* Caution: the standard ZLIB1.DLL is NOT compiled using ZLIB_WINAPI.
*/
#if defined(ZLIB_WINAPI) && defined(_WIN32)
+# ifndef WIN32_LEAN_AND_MEAN
+# define WIN32_LEAN_AND_MEAN
+# endif
# include <windows.h>
/* No need for _export, use ZLIB.DEF instead. */
/* For complete Windows compatibility, use WINAPI, not __stdcall. */