Fix png support to allow compiling with libpng-1.5 (Bug#7908).
commit7f9c5df9660fc124e5d1399eaf4b3f5da94c71aa
authorChong Yidong <cyd@stupidchicken.com>
Sat, 29 Jan 2011 21:28:26 +0000 (29 16:28 -0500)
committerChong Yidong <cyd@stupidchicken.com>
Sat, 29 Jan 2011 21:28:26 +0000 (29 16:28 -0500)
tree71452aa6e099477a1770338244e72c0a65e40d8b
parente935c6a287abf3dc87e2bc79d9019460a689d4aa
Fix png support to allow compiling with libpng-1.5 (Bug#7908).

* image.c (fn_png_longjmp, fn_png_set_longjmp_fn): New png
function definitions for compiling with libpng-1.5.
(PNG_LONGJMP, PNG_JMPBUF): New macros for libpng-1.5.
(my_png_error, png_load): Use them.  Suggested by Thomas Klausner.
src/ChangeLog
src/image.c