Reduce Windows header inclusion to speed up compilation.

This commit is contained in:
Mark Adler 2024-02-28 18:46:54 -08:00
parent 6544c3ecb7
commit 72d6aa2672

View File

@ -17,11 +17,16 @@
# define ZLIB_INTERNAL # define ZLIB_INTERNAL
#endif #endif
#if defined(_WIN32) && !defined(_CRT_SECURE_NO_WARNINGS) #if defined(_WIN32)
# define _CRT_SECURE_NO_WARNINGS # ifndef WIN32_LEAN_AND_MEAN
#endif # define WIN32_LEAN_AND_MEAN
#if defined(_WIN32) && !defined(_CRT_NONSTDC_NO_DEPRECATE) # endif
# define _CRT_NONSTDC_NO_DEPRECATE # ifndef _CRT_SECURE_NO_WARNINGS
# define _CRT_SECURE_NO_WARNINGS
# endif
# ifndef _CRT_NONSTDC_NO_DEPRECATE
# define _CRT_NONSTDC_NO_DEPRECATE
# endif
#endif #endif
#include <stdio.h> #include <stdio.h>