[libpng15] Fix inconsistencies in use of PNG_GET_PALETTE_MAX

This commit is contained in:
Glenn Randers-Pehrson
2013-02-10 18:01:47 -06:00
parent 8849c000ea
commit a92e5a86f8
3 changed files with 9 additions and 12 deletions

View File

@@ -1128,7 +1128,7 @@ png_get_io_chunk_name (png_structp png_ptr)
#endif /* ?PNG_IO_STATE_SUPPORTED */
#ifdef PNG_CHECK_FOR_INVALID_INDEX_SUPPORTED
#ifdef PNG_GET_PALETTE_MAX_SUPPORTED
# ifdef PNG_GET_PALETTE_MAX_SUPPORTED
int PNGAPI
png_get_palette_max(png_const_structp png_ptr, png_const_infop info_ptr)
{
@@ -1137,7 +1137,7 @@ png_get_palette_max(png_const_structp png_ptr, png_const_infop info_ptr)
return (-1);
}
#endif
# endif
#endif
#endif /* PNG_READ_SUPPORTED || PNG_WRITE_SUPPORTED */