1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
From: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Subject: FTBFS by libpng 1.5 (Closes: #649948)
Bug-Debian: http://bugs.debian.org/649948
---
win/gl/gl_image.c | 4 ++++
1 file changed, 4 insertions(+)
--- a/win/gl/gl_image.c
+++ b/win/gl/gl_image.c
@@ -486,7 +486,11 @@
/* set error handling since we are using the setjmp/longjmp method
* (this is the normal method of doing things with libpng).
*/
+#if PNG_LIBPNG_VER_MAJOR >= 1 && PNG_LIBPNG_VER_MINOR >= 4
+ if ( setjmp(png_jmpbuf(png_ptr)) )
+#else
if (setjmp(png_ptr->jmpbuf))
+#endif
{
sdlgl_warning("Problem within LibPNG (unknown)\n");
goto failed;
|