summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 67d1aa0)
raw | patch | inline | side by side (parent: 67d1aa0)
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) |
program/src/pngsize.c | patch | blob | history |
diff --git a/program/src/pngsize.c b/program/src/pngsize.c
index 6c9b78a98372e647531b3eb2da7c3248a2824a4a..3aa4a043cb4f54d9f556fe9e2329899694e0cd3b 100644 (file)
--- a/program/src/pngsize.c
+++ b/program/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;
}