X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=program%2Fsrc%2Fpngsize.c;h=3b16de62ac424c10dde744b22ce3c6cb6352f314;hb=fc9c087961677fc0ceacfb4f0465207ec0dd2df3;hp=41ff16ab14f3ea4de9d962b447ee4fea9204339f;hpb=bdd9921d373849e129247adb6a25c0397c59e8d3;p=rrdtool-all.git diff --git a/program/src/pngsize.c b/program/src/pngsize.c index 41ff16ab..3b16de62 100644 --- a/program/src/pngsize.c +++ b/program/src/pngsize.c @@ -1,10 +1,11 @@ /***************************************************************************** - * RRDtool 1.1.x Copyright Tobias Oetiker, 1997 - 2002 + * RRDtool 1.2.9 Copyright by Tobi Oetiker, 1997-2005 ***************************************************************************** * pngsize.c determine the size of a PNG image *****************************************************************************/ #include +#include "rrd_tool.h" int PngSize(FILE *fd, long *width, long *height) @@ -21,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;