From 6d3a66a11a9d98c80d5b6a36d489263a389c6b90 Mon Sep 17 00:00:00 2001 From: AlexisWilke Date: Sun, 13 Oct 2024 08:46:47 -0700 Subject: Avoid attempting to redefine z_const in zconf.h. --- zconf.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'zconf.h') diff --git a/zconf.h b/zconf.h index 4a52aed..d6c159a 100644 --- a/zconf.h +++ b/zconf.h @@ -235,10 +235,12 @@ # endif #endif -#if defined(ZLIB_CONST) && !defined(z_const) -# define z_const const -#else -# define z_const +#ifndef z_const +# ifdef ZLIB_CONST +# define z_const const +# else +# define z_const +# endif #endif #ifdef Z_SOLO -- cgit v1.2.3-55-g6feb