]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Add WIN32_LEAN_AND_MEAN for windows.h include.
authorMark Adler <fork@madler.net>
Mon, 3 Oct 2022 15:47:03 +0000 (08:47 -0700)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Fri, 3 Feb 2023 14:49:02 +0000 (15:49 +0100)
zconf.h.in

index 82ee080321068601a521f33bb462a06ef5022b11..0611fac68b26131f0f57f965ea286e92ef841505 100644 (file)
@@ -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 <windows.h>
    /* No need for _export, use ZLIB.DEF instead. */
    /* For complete Windows compatibility, use WINAPI, not __stdcall. */