X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fpngsize.c;h=5818eb0c555f6492c17971b6c2f62e6eef60000e;hb=37329a5f991870e8f47c8a52f6dd594fef813de6;hp=e60b6fab0f9f8075b86d02cb2cb04b173e7473c8;hpb=0c87c2676bb826f8defb40d7d45e771ecd40550c;p=rrdtool.git diff --git a/src/pngsize.c b/src/pngsize.c index e60b6fa..5818eb0 100644 --- a/src/pngsize.c +++ b/src/pngsize.c @@ -1,5 +1,5 @@ /***************************************************************************** - * RRDtool 1.1.x Copyright Tobias Oetiker, 1997 - 2002 + * RRDtool 1.2.6 Copyright by Tobi Oetiker, 1997-2005 ***************************************************************************** * pngsize.c determine the size of a PNG image *****************************************************************************/ @@ -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;