summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 959888d)
raw | patch | inline | side by side (parent: 959888d)
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) |
program/src/pngsize.c | patch | blob | history |
diff --git a/program/src/pngsize.c b/program/src/pngsize.c
index c9254d48f65f915ed315848df78939effd9f1dc6..eb12596cbbf8a9b8d7aac8a75f07a74b1c120542 100644 (file)
--- a/program/src/pngsize.c
+++ b/program/src/pngsize.c
/* this is to make compile on aix work since they seem to define jmpbuf
to be _jmpbuf which breaks compilation */
+
+#ifndef png_jmpbuf
+#ifdef PNG_SETJMP_SUPPORTED
+# define png_jmpbuf(png_ptr) ((png_ptr)->PNG_jmpbuf)
+#else
#ifdef jmpbuf
#undef jmpbuf
#endif
-
-#ifndef png_jmpbuf
# define png_jmpbuf(png_ptr) ((png_ptr)->jmpbuf)
+#endif
#endif
if (setjmp(png_jmpbuf(png_read_ptr))){