[devel] Only compile the new zlib re-initializing code when text or iCCP

is supported.
This commit is contained in:
Glenn Randers-Pehrson
2011-04-01 08:12:24 -05:00
parent bef60dc624
commit 3bb8683a79
4 changed files with 7 additions and 3 deletions

View File

@@ -70,11 +70,14 @@ struct png_struct_def
int zlib_mem_level; /* holds zlib compression memory level */
int zlib_strategy; /* holds zlib compression strategy */
/* Added at libpng 1.5.3 */
#if defined(PNG_WRITE_TEXT_SUPPORTED) || defined(PNG_WRITE_iCCP_SUPPORTED) || \
defined(PNG_WRITE_CUSTOMIZE_ZTXT_COMPRESSION)
int zlib_text_level; /* holds zlib compression level */
int zlib_text_method; /* holds zlib compression method */
int zlib_text_window_bits; /* holds zlib compression window bits */
int zlib_text_mem_level; /* holds zlib compression memory level */
int zlib_text_strategy; /* holds zlib compression strategy */
#endif
/* End of material added at libpng 1.5.3 */
png_uint_32 width; /* width of image in pixels */