Skip to content

Commit

Permalink
Add WIN32_LEAN_AND_MEAN for windows.h include.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Adler authored and Dead2 committed Feb 3, 2023
1 parent 5393c21 commit 0e49aa3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions zconf.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit 0e49aa3

Please sign in to comment.