From 5f66b7f2ccb1865bce277d1ace5f489d4440d93b Mon Sep 17 00:00:00 2001 From: oetiker Date: Wed, 14 Nov 2007 13:53:28 +0000 Subject: [PATCH] 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 --- src/pngsize.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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; } -- 2.30.2