diff options
author | Paul Eggert <[email protected]> | 2014-05-07 11:20:18 -0700 |
---|---|---|
committer | Paul Eggert <[email protected]> | 2014-05-07 11:20:18 -0700 |
commit | 1ba38c429fa6ce17568771ef51c8e53b1a72bb94 (patch) | |
tree | f1bd8da3362d9f933fcb202b0e643bb2d3ee1b7f /src | |
parent | 98e12950aee65b44beb43e9dcaa77bd2b5e2d308 (diff) |
* image.c: Include <png.h> before <setjmp.h>.
Fixes: debbugs:17429
Diffstat (limited to 'src')
-rw-r--r-- | src/ChangeLog | 4 | ||||
-rw-r--r-- | src/image.c | 8 |
2 files changed, 10 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index f8b12fafca..3aef0c729f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2014-05-07 Paul Eggert <[email protected]> + + * image.c: Include <png.h> before <setjmp.h> (Bug#17429). + 2014-05-06 Paul Eggert <[email protected]> * image.c: Do not use libpng if HAVE_NS, as NS does its own thing. diff --git a/src/image.c b/src/image.c index c459122a1b..047f751750 100644 --- a/src/image.c +++ b/src/image.c @@ -21,6 +21,12 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ #include "sysstdio.h" #include <unistd.h> +/* Include this before including <setjmp.h> to work around bugs with + older libpng; see Bug#17429. */ +#if defined HAVE_PNG && !defined HAVE_NS +# include <png.h> +#endif + #include <setjmp.h> #include <c-ctype.h> @@ -5512,8 +5518,6 @@ png_image_p (Lisp_Object object) #if defined HAVE_PNG && !defined HAVE_NS -#include <png.h> - #ifdef WINDOWSNT /* PNG library details. */ |