[libpng17] Removed #ifdef PNG_16BIT_SUPPORTED/#endif around png_product2(); it is

needed by png_reciprocal2().
Added #ifdef PNG_16BIT_SUPPORTED/#endif around png_log16bit() and
    png_do_swap().
This commit is contained in:
Glenn Randers-Pehrson
2014-11-06 21:14:16 -06:00
parent 05dcaffd38
commit 9c0b5ab848
5 changed files with 20 additions and 8 deletions

View File

@@ -538,8 +538,10 @@ png_do_write_transformations(png_structrp png_ptr, png_row_infop row_info)
#endif
#ifdef PNG_WRITE_SWAP_SUPPORTED
# ifdef PNG_16BIT_SUPPORTED
if ((png_ptr->transformations & PNG_SWAP_BYTES) != 0)
png_do_swap(row_info, png_ptr->row_buf + 1);
# endif
#endif
#ifdef PNG_WRITE_SHIFT_SUPPORTED