Warning, /graphics/krita/3rdparty/ext_zlib/0001-Prevent-invalid-inclusions-when-HAVE_-is-set-to-0.patch is written in an unsupported language. File is not indexed.
0001 diff --git a/zconf.h.cmakein b/zconf.h.cmakein 0002 index a7f24cc..a1b359b 100644 0003 --- a/zconf.h.cmakein 0004 +++ b/zconf.h.cmakein 0005 @@ -434,11 +434,19 @@ typedef uLong FAR uLongf; 0006 #endif 0007 0008 #ifdef HAVE_UNISTD_H /* may be set to #if 1 by ./configure */ 0009 -# define Z_HAVE_UNISTD_H 0010 +# if ~(~HAVE_UNISTD_H + 0) == 0 && ~(~HAVE_UNISTD_H + 1) == 1 0011 +# define Z_HAVE_UNISTD_H 0012 +# elif HAVE_UNISTD_H != 0 0013 +# define Z_HAVE_UNISTD_H 0014 +# endif 0015 #endif 0016 0017 #ifdef HAVE_STDARG_H /* may be set to #if 1 by ./configure */ 0018 -# define Z_HAVE_STDARG_H 0019 +# if ~(~HAVE_STDARG_H + 0) == 0 && ~(~HAVE_STDARG_H + 1) == 1 0020 +# define Z_HAVE_STDARG_H 0021 +# elif HAVE_STDARG_H != 0 0022 +# define Z_HAVE_STDARG_H 0023 +# endif 0024 #endif 0025 0026 #ifdef STDC 0027 diff --git a/zconf.h.in b/zconf.h.in 0028 index 5e1d68a..32f53c8 100644 0029 --- a/zconf.h.in 0030 +++ b/zconf.h.in 0031 @@ -432,11 +432,19 @@ typedef uLong FAR uLongf; 0032 #endif 0033 0034 #ifdef HAVE_UNISTD_H /* may be set to #if 1 by ./configure */ 0035 -# define Z_HAVE_UNISTD_H 0036 +# if ~(~HAVE_UNISTD_H + 0) == 0 && ~(~HAVE_UNISTD_H + 1) == 1 0037 +# define Z_HAVE_UNISTD_H 0038 +# elif HAVE_UNISTD_H != 0 0039 +# define Z_HAVE_UNISTD_H 0040 +# endif 0041 #endif 0042 0043 #ifdef HAVE_STDARG_H /* may be set to #if 1 by ./configure */ 0044 -# define Z_HAVE_STDARG_H 0045 +# if ~(~HAVE_STDARG_H + 0) == 0 && ~(~HAVE_STDARG_H + 1) == 1 0046 +# define Z_HAVE_STDARG_H 0047 +# elif HAVE_STDARG_H != 0 0048 +# define Z_HAVE_STDARG_H 0049 +# endif 0050 #endif 0051 0052 #ifdef STDC