Package: visualboyadvance / 1.8.0.dfsg-4

11_libpng1.5.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Author: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Description: Fix FTBFS with libpng 1.5
--- a/src/Util.cpp
+++ b/src/Util.cpp
@@ -87,7 +87,11 @@
     return false;
   }
 
+#if PNG_LIBPNG_VER_MAJOR >= 1 && PNG_LIBPNG_VER_MINOR >= 4
+  if (setjmp(png_jmpbuf(png_ptr))) {
+#else
   if(setjmp(png_ptr->jmpbuf)) {
+#endif
     png_destroy_write_struct(&png_ptr,NULL);
     fclose(fp);
     return false;