From: oetiker Date: Wed, 14 Nov 2007 13:53:28 +0000 (+0000) Subject: make aix users happy and compile there too X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1da65a17a9111ae52a97e8372c7844062a72c046;p=rrdtool-all.git make aix users happy and compile there too git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@1221 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/src/pngsize.c b/program/src/pngsize.c index 6c9b78a9..3aa4a043 100644 --- a/program/src/pngsize.c +++ b/program/src/pngsize.c @@ -1,5 +1,5 @@ /***************************************************************************** - * RRDtool 1.2.24 Copyright by Tobi Oetiker, 1997-2007 + * RRDtool 1.2.25 Copyright by Tobi Oetiker, 1997-2007 ***************************************************************************** * pngsize.c determine the size of a PNG image *****************************************************************************/ @@ -29,7 +29,11 @@ PngSize(FILE *fd, long *width, long *height) #undef jmpbuf #endif - if (setjmp(png_read_ptr->jmpbuf)){ +#ifndef png_jmpbuf +# define png_jmpbuf(png_ptr) ((png_ptr)->jmpbuf) +#endif + + if (setjmp(png_jmpbuf(png_read_ptr))){ png_destroy_read_struct(&png_read_ptr, &info_ptr, (png_infopp)NULL); return 0; }