[libpng16] Removed png_get_signature() and info_ptr->signature from WRITE-only

builds.  Restored png_get_channels() to WRITE-only builds.
This commit is contained in:
Glenn Randers-Pehrson
2012-08-10 07:49:44 -05:00
parent 8d3453a22d
commit 5d1df4fdf4
3 changed files with 4 additions and 3 deletions

View File

@@ -73,7 +73,10 @@ struct png_info_def
png_byte channels; /* number of data channels per pixel (1, 2, 3, 4) */
png_byte pixel_depth; /* number of bits per pixel */
png_byte spare_byte; /* to align the data, and for future use */
#ifdef PNG_READ_SUPPORTED
png_byte signature[8]; /* magic bytes read by libpng from start of file */
#endif
/* The rest of the data is optional. If you are reading, check the
* valid field to see if the information in these are valid. If you