summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 40715f0)
raw | patch | inline | side by side (parent: 40715f0)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sun, 8 Jun 2008 16:23:39 +0000 (16:23 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sun, 8 Jun 2008 16:23:39 +0000 (16:23 +0000) |
src/pngsize.c | patch | blob | history |
diff --git a/src/pngsize.c b/src/pngsize.c
index 7cdf6c18e86b4c23d6e8c348bd0883acf171a9fe..0f8fd8bf69a9529096d01245e262c3e2db841d99 100644 (file)
--- a/src/pngsize.c
+++ b/src/pngsize.c
/* 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
-
#ifndef png_jmpbuf
+#ifdef PNG_SETJMP_SUPPORTED
+# define png_jmpbuf(png_ptr) ((png_ptr)->PNG_jmpbuf)
+#else
+#ifdef jmpbuf
+#undef jmpbuf
+#endif
# define png_jmpbuf(png_ptr) ((png_ptr)->jmpbuf)
+#endif
#endif
if (setjmp(png_jmpbuf(png_read_ptr))) {