]> granicus.if.org Git - php/commitdiff
MF5_1: include png.h prior php.h
authorMichael Wallner <mike@php.net>
Fri, 27 Jan 2006 20:48:42 +0000 (20:48 +0000)
committerMichael Wallner <mike@php.net>
Fri, 27 Jan 2006 20:48:42 +0000 (20:48 +0000)
ext/gd/gd.c

index 47b79075bd9954c303e510dce5b032af3d504463..27858202946e638d86a4f8356c86e1334acc55e3 100644 (file)
 #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>