png-1.5 disallows access to struct members, use accessor functions.
authorThomas Klausner <wiz@NetBSD.org>
Sun, 3 Apr 2011 17:32:44 +0000 (3 19:32 +0200)
committerThomas Klausner <wiz@NetBSD.org>
Sun, 3 Apr 2011 17:32:44 +0000 (3 19:32 +0200)
src/glpng.c

index 6689754..4bbf238 100644 (file)
@@ -281,7 +281,7 @@ int APIENTRY pngLoadRawF(FILE *fp, pngRawInfo *pinfo) {
        endinfo = png_create_info_struct(png);
 
        // DH: added following lines
-       if (setjmp(png->jmpbuf))
+       if (setjmp(png_jmpbuf(png)))
        {
                png_destroy_read_struct(&png, &info, &endinfo);
                return 0;
@@ -385,7 +385,7 @@ int APIENTRY pngLoadF(FILE *fp, int mipmap, int trans, pngInfo *pinfo) {
        endinfo = png_create_info_struct(png);
 
        // DH: added following lines
-       if (setjmp(png->jmpbuf))
+       if (setjmp(png_jmpbuf(png)))
        {
                png_destroy_read_struct(&png, &info, &endinfo);
                return 0;