summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Wallner <mike@php.net>2006-01-27 20:46:02 +0000
committerMichael Wallner <mike@php.net>2006-01-27 20:46:02 +0000
commitfe52312f596ff6e5ae9ed512fb9816b5252640e5 (patch)
treecc7163f12cbfb9382a70dd17761872be5914722d
parenta146043c25b60a979eea08e8976a7db57c377a04 (diff)
downloadphp-git-fe52312f596ff6e5ae9ed512fb9816b5252640e5.tar.gz
- include png.h prior php.h
-rw-r--r--ext/gd/gd.c5
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>