mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
Fix incompatibility with libpng 1.5 and later (use of the now-private jmpbuf field). Closes: https://trac.macports.org/ticket/59554 Fix incompatibility with Xcode 12 and later (implicit declaration of functions).
24 lines
661 B
Diff
24 lines
661 B
Diff
Fix:
|
|
|
|
error: incomplete definition of type 'struct png_struct_def'
|
|
--- lib/pngimage.c.orig 2006-04-21 00:48:54.000000000 -0500
|
|
+++ lib/pngimage.c 2021-01-23 02:31:47.000000000 -0600
|
|
@@ -35,7 +35,7 @@
|
|
return NULL;
|
|
}
|
|
|
|
- if (setjmp(png_ptr->jmpbuf)) {
|
|
+ if (setjmp(png_jmpbuf(png_ptr))) {
|
|
png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
|
|
RbImage_setError("setjmp returns error condition");
|
|
return NULL;
|
|
@@ -101,7 +101,7 @@
|
|
return NULL;
|
|
}
|
|
|
|
- if (setjmp(png_ptr->jmpbuf)) {
|
|
+ if (setjmp(png_jmpbuf(png_ptr))) {
|
|
png_destroy_write_struct(&png_ptr, &info_ptr);
|
|
RbImage_setError("setjmp returns error condition");
|
|
return NULL;
|