diff options
author | Mark Adler <fork@madler.net> | 2022-10-03 08:47:03 -0700 |
---|---|---|
committer | Mark Adler <fork@madler.net> | 2022-10-05 15:17:52 -0700 |
commit | 456775aec853102d5de9de3b225a547aa1583f02 (patch) | |
tree | 94e9371134ac58341442e226a77c2ec1ea497f87 | |
parent | 4078713e3bdd4a310fde906a1d6b74a6bfe77e5b (diff) | |
download | zlib-456775aec853102d5de9de3b225a547aa1583f02.tar.gz |
Add WIN32_LEAN_AND_MEAN for windows.h include.
-rw-r--r-- | zconf.h | 3 | ||||
-rw-r--r-- | zconf.h.cmakein | 3 | ||||
-rw-r--r-- | zconf.h.in | 3 |
3 files changed, 9 insertions, 0 deletions
@@ -349,6 +349,9 @@ # ifdef FAR # undef FAR # endif +# 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. */ 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 <windows.h> /* No need for _export, use ZLIB.DEF instead. */ /* For complete Windows compatibility, use WINAPI, not __stdcall. */ @@ -349,6 +349,9 @@ # ifdef FAR # undef FAR # endif +# 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. */ |