[libpng17] Enclosed the new png_get_palette_max API

in #ifdef PNG_GET_PALETTE_MAX_SUPPORTED
block, and revised pnglibconf.h and pnglibconf.h.prebuilt accordingly.
This commit is contained in:
Glenn Randers-Pehrson
2013-02-10 15:59:15 -06:00
parent b96b2b7e90
commit e9760e5e95
6 changed files with 68 additions and 35 deletions

View File

@@ -1163,6 +1163,7 @@ png_get_io_chunk_type (png_const_structrp png_ptr)
#endif /* ?PNG_IO_STATE_SUPPORTED */
#ifdef PNG_CHECK_FOR_INVALID_INDEX_SUPPORTED
#ifdef PNG_GET_PALETTE_MAX_SUPPORTED
int PNGAPI
png_get_palette_max(png_const_structrp png_ptr, png_const_inforp info_ptr)
{
@@ -1172,5 +1173,6 @@ png_get_palette_max(png_const_structrp png_ptr, png_const_inforp info_ptr)
return (-1);
}
#endif
#endif
#endif /* PNG_READ_SUPPORTED || PNG_WRITE_SUPPORTED */