From 456775aec853102d5de9de3b225a547aa1583f02 Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Mon, 3 Oct 2022 08:47:03 -0700 Subject: [PATCH] Add WIN32_LEAN_AND_MEAN for windows.h include. --- zconf.h | 3 +++ zconf.h.cmakein | 3 +++ zconf.h.in | 3 +++ 3 files changed, 9 insertions(+) diff --git a/zconf.h b/zconf.h index 5e1d68a..0ba5bd5 100644 --- a/zconf.h +++ b/zconf.h @@ -349,6 +349,9 @@ # ifdef FAR # undef FAR # endif +# ifndef WIN32_LEAN_AND_MEAN +# define WIN32_LEAN_AND_MEAN +# endif # include /* No need for _export, use ZLIB.DEF instead. */ /* For complete Windows compatibility, use WINAPI, not __stdcall. */ diff --git a/zconf.h.cmakein b/zconf.h.cmakein index a7f24cc..62c5261 100644 --- a/zconf.h.cmakein +++ b/zconf.h.cmakein @@ -351,6 +351,9 @@ # ifdef FAR # undef FAR # endif +# ifndef WIN32_LEAN_AND_MEAN +# define WIN32_LEAN_AND_MEAN +# endif # include /* No need for _export, use ZLIB.DEF instead. */ /* For complete Windows compatibility, use WINAPI, not __stdcall. */ diff --git a/zconf.h.in b/zconf.h.in index 5e1d68a..0ba5bd5 100644 --- a/zconf.h.in +++ b/zconf.h.in @@ -349,6 +349,9 @@ # ifdef FAR # undef FAR # endif +# ifndef WIN32_LEAN_AND_MEAN +# define WIN32_LEAN_AND_MEAN +# endif # include /* No need for _export, use ZLIB.DEF instead. */ /* For complete Windows compatibility, use WINAPI, not __stdcall. */