ports/graphics/gfract/patches/patch-my_png_cpp

14 lines
393 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Fix build with png-1.5.
--- my_png.cpp.orig Mon Feb 1 13:31:34 2010
+++ my_png.cpp Thu Oct 27 14:50:22 2016
@@ -53,7 +53,7 @@ void my_png_save_img(image_info* img, char* filename)
return;
}
- if (setjmp(png_ptr->jmpbuf)) {
+ if (setjmp(png_jmpbuf(png_ptr))) {
fprintf(stderr, "Internal error in libpng\n");
if (png_pal)
delete[] png_pal;