aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2024-02-28 18:46:54 -0800
committerMark Adler <madler@alumni.caltech.edu>2024-02-28 18:46:54 -0800
commit72d6aa2672c91d10f8f58ee796ed8d44325faca4 (patch)
tree9cbfe42f2054314d9759d912f6187daf50b085d3
parent6544c3ecb7d38914fa31f84fc2a3fdeb11d6ce2d (diff)
downloadzlib-72d6aa2672c91d10f8f58ee796ed8d44325faca4.tar.gz
zlib-72d6aa2672c91d10f8f58ee796ed8d44325faca4.tar.bz2
zlib-72d6aa2672c91d10f8f58ee796ed8d44325faca4.zip
Reduce Windows header inclusion to speed up compilation.
-rw-r--r--gzguts.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/gzguts.h b/gzguts.h
index a6485ab..71dea74 100644
--- a/gzguts.h
+++ b/gzguts.h
@@ -17,11 +17,16 @@
17# define ZLIB_INTERNAL 17# define ZLIB_INTERNAL
18#endif 18#endif
19 19
20#if defined(_WIN32) && !defined(_CRT_SECURE_NO_WARNINGS) 20#if defined(_WIN32)
21# define _CRT_SECURE_NO_WARNINGS 21# ifndef WIN32_LEAN_AND_MEAN
22#endif 22# define WIN32_LEAN_AND_MEAN
23#if defined(_WIN32) && !defined(_CRT_NONSTDC_NO_DEPRECATE) 23# endif
24# define _CRT_NONSTDC_NO_DEPRECATE 24# ifndef _CRT_SECURE_NO_WARNINGS
25# define _CRT_SECURE_NO_WARNINGS
26# endif
27# ifndef _CRT_NONSTDC_NO_DEPRECATE
28# define _CRT_NONSTDC_NO_DEPRECATE
29# endif
25#endif 30#endif
26 31
27#include <stdio.h> 32#include <stdio.h>