Blame SOURCES/plotutils-2.6-png15.patch
|
|
a1679c |
diff -up plotutils-2.6/libplot/z_write.c.png15 plotutils-2.6/libplot/z_write.c
|
|
|
a1679c |
--- plotutils-2.6/libplot/z_write.c.png15 2008-07-15 20:54:10.000000000 -0400
|
|
|
a1679c |
+++ plotutils-2.6/libplot/z_write.c 2012-03-22 13:26:48.251676137 -0400
|
|
|
a1679c |
@@ -164,7 +164,11 @@ _pl_z_maybe_output_image (S___(Plotter *
|
|
|
a1679c |
}
|
|
|
a1679c |
|
|
|
a1679c |
/* cleanup after libpng errors (error handler does a longjmp) */
|
|
|
a1679c |
+#if PNG_LIBPNG_VER_MAJOR >= 1 && PNG_LIBPNG_VER_MINOR >= 4
|
|
|
a1679c |
+ if (setjmp (png_jmpbuf(png_ptr)))
|
|
|
a1679c |
+#else
|
|
|
a1679c |
if (setjmp (png_ptr->jmpbuf))
|
|
|
a1679c |
+#endif
|
|
|
a1679c |
{
|
|
|
a1679c |
png_destroy_write_struct (&png_ptr, (png_info **)NULL);
|
|
|
a1679c |
return -1;
|
|
|
a1679c |
@@ -444,7 +448,11 @@ _our_error_fn_stdio (png_struct *png_ptr
|
|
|
a1679c |
#endif
|
|
|
a1679c |
}
|
|
|
a1679c |
|
|
|
a1679c |
+#if PNG_LIBPNG_VER_MAJOR >= 1 && PNG_LIBPNG_VER_MINOR >= 4
|
|
|
a1679c |
+ longjmp (png_jmpbuf(png_ptr), 1);
|
|
|
a1679c |
+#else
|
|
|
a1679c |
longjmp (png_ptr->jmpbuf, 1);
|
|
|
a1679c |
+#endif
|
|
|
a1679c |
}
|
|
|
a1679c |
|
|
|
a1679c |
static void
|
|
|
a1679c |
@@ -515,7 +523,11 @@ _our_error_fn_stream (png_struct *png_pt
|
|
|
a1679c |
#endif
|
|
|
a1679c |
}
|
|
|
a1679c |
|
|
|
a1679c |
+#if PNG_LIBPNG_VER_MAJOR >= 1 && PNG_LIBPNG_VER_MINOR >= 4
|
|
|
a1679c |
+ longjmp (png_jmpbuf(png_ptr), 1);
|
|
|
a1679c |
+#else
|
|
|
a1679c |
longjmp (png_ptr->jmpbuf, 1);
|
|
|
a1679c |
+#endif
|
|
|
a1679c |
}
|
|
|
a1679c |
|
|
|
a1679c |
static void
|