X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=src%2Fpngsize.c;h=5aa3540049cd5f422f268d915d62e219ae1154ce;hp=ed3666a31526ba82f1ea561c403c566b665ed7cc;hb=d2f5d0a4236952cf78a55c6af99b848e87dc0248;hpb=ad994d046d175fec8f67cc3b7cddf3cb77d341be diff --git a/src/pngsize.c b/src/pngsize.c index ed3666a..5aa3540 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;