diff options
-rw-r--r-- | ext/gd/gd.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/gd/gd.c b/ext/gd/gd.c index 5be939e9ac..bc6f6b00b7 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -29,6 +29,11 @@ #include "config.h" #endif +#ifdef HAVE_GD_PNG +/* needs to be first */ +#include <png.h> +#endif + #include "php.h" #include "ext/standard/head.h" #include <math.h> |