[libpng17] Make png_read_png() and png_write_png() prototypes in png.h depend

upon PNG_READ_SUPPORTED and PNG_WRITE_SUPPORTED.
Removed dependence on !PNG_READ_EXPAND_SUPPORTED for calling
png_set_packing() in png_read_png().
This commit is contained in:
John Bowler
2014-02-05 10:55:35 -06:00
committed by Glenn Randers-Pehrson
parent 484dad1a19
commit cf354c2c82
4 changed files with 21 additions and 9 deletions

View File

@@ -1044,7 +1044,7 @@ png_read_png(png_structrp png_ptr, png_inforp info_ptr,
png_set_strip_alpha(png_ptr);
#endif
#if defined(PNG_READ_PACK_SUPPORTED) && !defined(PNG_READ_EXPAND_SUPPORTED)
#if defined(PNG_READ_PACK_SUPPORTED)
/* Extract multiple pixels with bit depths of 1, 2, or 4 from a single
* byte into separate bytes (useful for paletted and grayscale images).
*/