aboutsummaryrefslogtreecommitdiffstats
path: root/src/image.c
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/image.c
parent98e12950aee65b44beb43e9dcaa77bd2b5e2d308 (diff)
downloademacs-1ba38c429fa6ce17568771ef51c8e53b1a72bb94.tar.gz
emacs-1ba38c429fa6ce17568771ef51c8e53b1a72bb94.zip
* image.c: Include <png.h> before <setjmp.h>.
Fixes: debbugs:17429
Diffstat (limited to 'src/image.c')
-rw-r--r--src/image.c8
1 files changed, 6 insertions, 2 deletions
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