From: Mark Adler Date: Mon, 3 Oct 2022 15:47:03 +0000 (-0700) Subject: Add WIN32_LEAN_AND_MEAN for windows.h include. X-Git-Tag: 2.1.0-beta1~82 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0e49aa38b86efc61670d973265daee0981f72b7d;p=thirdparty%2Fzlib-ng.git Add WIN32_LEAN_AND_MEAN for windows.h include. --- diff --git a/zconf.h.in b/zconf.h.in index 82ee0803..0611fac6 100644 --- a/zconf.h.in +++ b/zconf.h.in @@ -79,6 +79,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 /* No need for _export, use ZLIB.DEF instead. */ /* For complete Windows compatibility, use WINAPI, not __stdcall. */