summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e8b59e5)
raw | patch | inline | side by side (parent: e8b59e5)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Wed, 14 Nov 2007 13:53:28 +0000 (13:53 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Wed, 14 Nov 2007 13:53:28 +0000 (13:53 +0000) |
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1221 a5681a0c-68f1-0310-ab6d-d61299d08faa
src/pngsize.c | patch | blob | history |
diff --git a/src/pngsize.c b/src/pngsize.c
index 6c9b78a98372e647531b3eb2da7c3248a2824a4a..3aa4a043cb4f54d9f556fe9e2329899694e0cd3b 100644 (file)
--- a/src/pngsize.c
+++ b/src/pngsize.c
/*****************************************************************************
- * RRDtool 1.2.24 Copyright by Tobi Oetiker, 1997-2007
+ * RRDtool 1.2.25 Copyright by Tobi Oetiker, 1997-2007
*****************************************************************************
* pngsize.c determine the size of a PNG image
*****************************************************************************/
#undef jmpbuf
#endif
- if (setjmp(png_read_ptr->jmpbuf)){
+#ifndef png_jmpbuf
+# define png_jmpbuf(png_ptr) ((png_ptr)->jmpbuf)
+#endif
+
+ if (setjmp(png_jmpbuf(png_read_ptr))){
png_destroy_read_struct(&png_read_ptr, &info_ptr, (png_infopp)NULL);
return 0;
}