diff options
Diffstat (limited to 'src/image.c')
-rw-r--r-- | src/image.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/image.c b/src/image.c index fa4eecd040b..d35bd83e6a4 100644 --- a/src/image.c +++ b/src/image.c @@ -27,6 +27,14 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ #include <unistd.h> #endif +#ifdef HAVE_PNG +#if defined HAVE_LIBPNG_PNG_H +# include <libpng/png.h> +#else +# include <png.h> +#endif +#endif + /* This makes the fields of a Display accessible, in Xlib header files. */ #define XLIB_ILLEGAL_ACCESS @@ -5787,12 +5795,6 @@ png_image_p (object) #ifdef HAVE_PNG -#if defined HAVE_LIBPNG_PNG_H -# include <libpng/png.h> -#else -# include <png.h> -#endif - #ifdef HAVE_NTGUI /* PNG library details. */ |