summaryrefslogtreecommitdiff
path: root/testing/slim/libpng-1.4+-support.patch
blob: 57b39272b62034713247fd608b9861a45f7beb92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/image.cpp	2012-06-26 04:20:14.000000000 -0400
+++ b/image.cpp	2012-06-27 11:41:34.000000000 -0400
@@ -781,7 +781,11 @@
                                 (png_infopp) NULL);
     }
 
+#if PNG_LIBPNG_VER_MAJOR >= 1 && PNG_LIBPNG_VER_MINOR >= 4
+    if (setjmp(png_jmpbuf((png_ptr)))) {
+#else
     if (setjmp(png_ptr->jmpbuf)) {
+#endif
         goto png_destroy;
     }