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=5f66b7f2ccb1865bce277d1ace5f489d4440d93b;p=rrdtool.git make aix users happy and compile there too git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1221 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/src/pngsize.c b/src/pngsize.c index 6c9b78a..3aa4a04 100644 --- a/src/pngsize.c +++ b/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; }