From: Tobias Oetiker Date: Sun, 1 May 2005 11:02:40 +0000 (+0000) Subject: undef jmpbuf to make compile work on AIX 5.1 X-Git-Tag: 1.2.1~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fde82cbb6bbf420b94d2bbd5931fb6054a557500;p=thirdparty%2Frrdtool-1.x.git undef jmpbuf to make compile work on AIX 5.1 git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@465 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/src/pngsize.c b/src/pngsize.c index ed3666a3..5aa35400 100644 --- a/src/pngsize.c +++ b/src/pngsize.c @@ -22,6 +22,13 @@ PngSize(FILE *fd, long *width, long *height) (*width)=0; (*height)=0; +/* this is to make compile on aix work since they seem to define jmpbuf + to be _jmpbuf which breaks compilation */ + +#ifdef jmpbuf +#undef jmpbuf +#endif + if (setjmp(png_read_ptr->jmpbuf)){ png_destroy_read_struct(&png_read_ptr, &info_ptr, (png_infopp)NULL); return 0;