mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00

In libpng 1.7 pngimage needs to check PNG_WRITE_PNG_SUPPORTED (new in 1.7), not PNG_WRITE_SUPPORTED because png_write_png can be disabled without disabling PNG_WRITE_SUPPORTED. Copied the approach from 1.6 pngcp.c (so this still works in 1.6 as well.)