diff --git a/pngrutil.c b/pngrutil.c index d5fa08c39..356e8f1f2 100644 --- a/pngrutil.c +++ b/pngrutil.c @@ -423,7 +423,8 @@ png_inflate_claim(png_structrp png_ptr, png_uint_32 owner) } #if ZLIB_VERNUM >= 0x1290 && \ - defined(PNG_SET_OPTION_SUPPORTED) && defined(PNG_IGNORE_ADLER32) + defined(PNG_SET_OPTION_SUPPORTED) && defined(PNG_IGNORE_ADLER32) && \ + !(defined(MAC_OS_X_VERSION_MIN_REQUIRED) && MAC_OS_X_VERSION_MIN_REQUIRED < 101300) if (((png_ptr->options >> PNG_IGNORE_ADLER32) & 3) == PNG_OPTION_ON) /* Turn off validation of the ADLER32 checksum in IDAT chunks */ ret = inflateValidate(&png_ptr->zstream, 0);