X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fpngsize.c;h=4ea4738b05d97c8dcd64b304eed5720ced664787;hb=6801c3fb1c505c5534218100fab7888e140ca359;hp=5fa114702530ccc8a8d1d7c0ddfe8c139a7c5794;hpb=6c5e7f32e3052259aa5e14053cb4bab04346ea94;p=rrdtool.git diff --git a/src/pngsize.c b/src/pngsize.c index 5fa1147..4ea4738 100644 --- a/src/pngsize.c +++ b/src/pngsize.c @@ -1,5 +1,5 @@ /***************************************************************************** - * RRDtool 1.2rc6 Copyright by Tobi Oetiker, 1997-2005 + * RRDtool 1.2.18 Copyright by Tobi Oetiker, 1997-2006 ***************************************************************************** * 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;