diff options
-rw-r--r-- | src/xfns.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/xfns.c b/src/xfns.c index d826bd9141f..b4545c659f8 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -7565,12 +7565,10 @@ pbm_load (f, img) #if HAVE_PNG -#ifdef HAVE_PNG_H -# include <png.h> +#if defined HAVE_LIBPNG_PNG_H +# include <libpng/png.h> #else -# ifdef HAVE_LIBPNG_PNG_H -# include <libpng/png.h> -# endif +# include <png.h> #endif /* Function prototypes. */ |