Avoid attempting to redefine z_const in zconf.h.

This commit is contained in:
AlexisWilke 2024-10-13 08:46:47 -07:00 committed by Mark Adler
parent 64191119d8
commit 6d3a66a11a
3 changed files with 18 additions and 12 deletions

View File

@ -235,11 +235,13 @@
# endif
#endif
#if defined(ZLIB_CONST) && !defined(z_const)
#ifndef z_const
# ifdef ZLIB_CONST
# define z_const const
# else
# define z_const
# endif
#endif
#ifdef Z_SOLO
# ifdef _WIN64

View File

@ -237,11 +237,13 @@
# endif
#endif
#if defined(ZLIB_CONST) && !defined(z_const)
#ifndef z_const
# ifdef ZLIB_CONST
# define z_const const
# else
# define z_const
# endif
#endif
#ifdef Z_SOLO
# ifdef _WIN64

View File

@ -235,11 +235,13 @@
# endif
#endif
#if defined(ZLIB_CONST) && !defined(z_const)
#ifndef z_const
# ifdef ZLIB_CONST
# define z_const const
# else
# define z_const
# endif
#endif
#ifdef Z_SOLO
# ifdef _WIN64