3 Avoid warning: 'inflateValidate' is only available on macOS 10.13 or newer [-Wunguarded-availability-new]
10 #if ZLIB_VERNUM >= 0x1290 && \
11 - defined(PNG_SET_OPTION_SUPPORTED) && defined(PNG_IGNORE_ADLER32)
12 + defined(PNG_SET_OPTION_SUPPORTED) && defined(PNG_IGNORE_ADLER32) && \
13 + !(defined(MAC_OS_X_VERSION_MIN_REQUIRED) && MAC_OS_X_VERSION_MIN_REQUIRED < 101300)
14 if (((png_ptr->options >> PNG_IGNORE_ADLER32) & 3) == PNG_OPTION_ON)
15 /* Turn off validation of the ADLER32 checksum in IDAT chunks */
16 ret = inflateValidate(&png_ptr->zstream, 0);