From 1ba38c429fa6ce17568771ef51c8e53b1a72bb94 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 7 May 2014 11:20:18 -0700 Subject: [PATCH] * image.c: Include before . Fixes: debbugs:17429 --- src/ChangeLog | 4 ++++ src/image.c | 8 ++++++-- 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 @@ +2014-05-07 Paul Eggert + + * image.c: Include before (Bug#17429). + 2014-05-06 Paul Eggert * 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 . */ #include "sysstdio.h" #include +/* Include this before including to work around bugs with + older libpng; see Bug#17429. */ +#if defined HAVE_PNG && !defined HAVE_NS +# include +#endif + #include #include @@ -5512,8 +5518,6 @@ png_image_p (Lisp_Object object) #if defined HAVE_PNG && !defined HAVE_NS -#include - #ifdef WINDOWSNT /* PNG library details. */ -- 2.39.5