From: Paul Eggert Date: Wed, 7 May 2014 18:20:18 +0000 (-0700) Subject: * image.c: Include before . X-Git-Tag: emacs-25.0.90~2640^2~138 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1ba38c429fa6ce17568771ef51c8e53b1a72bb94;p=emacs.git * image.c: Include before . Fixes: debbugs:17429 --- 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. */