[devel] Added PNG_READ_COMPRESSED_TEXT_SUPPORTED macro.

This commit is contained in:
Glenn Randers-Pehrson
2011-04-01 13:15:36 -05:00
parent 205483d592
commit 5975f31ff0
3 changed files with 18 additions and 5 deletions

View File

@@ -278,8 +278,7 @@ png_crc_error(png_structp png_ptr)
return (0);
}
#if defined(PNG_READ_zTXt_SUPPORTED) || defined(PNG_READ_iTXt_SUPPORTED) || \
defined(PNG_READ_iCCP_SUPPORTED)
#ifdef PNG_READ_COMPRESSED_TEXT_SUPPORTED
static png_size_t
png_inflate(png_structp png_ptr, png_bytep data, png_size_t size,
png_bytep output, png_size_t output_size)
@@ -536,7 +535,7 @@ png_decompress_chunk(png_structp png_ptr, int comp_type,
*newlength = prefix_size;
}
#endif
#endif /* PNG_READ_COMPRESSED_TEXT_SUPPORTED */
/* Read and check the IDHR chunk */
void /* PRIVATE */