Skip to content

Commit

Permalink
Reduce Windows header inclusion to speed up compilation.
Browse files Browse the repository at this point in the history
  • Loading branch information
madler committed Feb 29, 2024
1 parent 6544c3e commit 72d6aa2
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions gzguts.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,16 @@
# define ZLIB_INTERNAL
#endif

#if defined(_WIN32) && !defined(_CRT_SECURE_NO_WARNINGS)
# define _CRT_SECURE_NO_WARNINGS
#endif
#if defined(_WIN32) && !defined(_CRT_NONSTDC_NO_DEPRECATE)
# define _CRT_NONSTDC_NO_DEPRECATE
#if defined(_WIN32)
# ifndef WIN32_LEAN_AND_MEAN
# define WIN32_LEAN_AND_MEAN
# endif
# ifndef _CRT_SECURE_NO_WARNINGS
# define _CRT_SECURE_NO_WARNINGS
# endif
# ifndef _CRT_NONSTDC_NO_DEPRECATE
# define _CRT_NONSTDC_NO_DEPRECATE
# endif
#endif

#include <stdio.h>
Expand Down

0 comments on commit 72d6aa2

Please sign in to comment.