summaryrefslogtreecommitdiff
path: root/dev-games/clanlib/files/clanlib-0.8.1-libpng15.patch
blob: 81a216f221ada5a538a985f9d69e09059008984c (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/Sources/Display/Providers/png_provider_generic.cpp
+++ b/Sources/Display/Providers/png_provider_generic.cpp
@@ -107,7 +107,7 @@
 		png_destroy_read_struct(&png_ptr, &info_ptr, (png_infopp) NULL);
 		cl_assert(false);
 	}   
-	if (setjmp(png_ptr->jmpbuf))
+	if (setjmp(png_jmpbuf(png_ptr)))
 	{
 		png_destroy_read_struct(&png_ptr, &info_ptr, &end_info);
 		cl_assert(false);