aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2014-05-07 11:20:18 -0700
committerPaul Eggert2014-05-07 11:20:18 -0700
commit1ba38c429fa6ce17568771ef51c8e53b1a72bb94 (patch)
treef1bd8da3362d9f933fcb202b0e643bb2d3ee1b7f /src
parent98e12950aee65b44beb43e9dcaa77bd2b5e2d308 (diff)
downloademacs-1ba38c429fa6ce17568771ef51c8e53b1a72bb94.tar.gz
emacs-1ba38c429fa6ce17568771ef51c8e53b1a72bb94.zip
* image.c: Include <png.h> before <setjmp.h>.
Fixes: debbugs:17429
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/image.c8
2 files changed, 10 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index f8b12fafca0..3aef0c729f6 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12014-05-07 Paul Eggert <eggert@cs.ucla.edu>
2
3 * image.c: Include <png.h> before <setjmp.h> (Bug#17429).
4
12014-05-06 Paul Eggert <eggert@cs.ucla.edu> 52014-05-06 Paul Eggert <eggert@cs.ucla.edu>
2 6
3 * image.c: Do not use libpng if HAVE_NS, as NS does its own thing. 7 * 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 c459122a1b5..047f7517501 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/>. */
21#include "sysstdio.h" 21#include "sysstdio.h"
22#include <unistd.h> 22#include <unistd.h>
23 23
24/* Include this before including <setjmp.h> to work around bugs with
25 older libpng; see Bug#17429. */
26#if defined HAVE_PNG && !defined HAVE_NS
27# include <png.h>
28#endif
29
24#include <setjmp.h> 30#include <setjmp.h>
25#include <c-ctype.h> 31#include <c-ctype.h>
26 32
@@ -5512,8 +5518,6 @@ png_image_p (Lisp_Object object)
5512 5518
5513#if defined HAVE_PNG && !defined HAVE_NS 5519#if defined HAVE_PNG && !defined HAVE_NS
5514 5520
5515#include <png.h>
5516
5517#ifdef WINDOWSNT 5521#ifdef WINDOWSNT
5518/* PNG library details. */ 5522/* PNG library details. */
5519 5523