]> granicus.if.org Git - php/commitdiff
fix build with bundled libgd
authorRemi Collet <remi@php.net>
Sat, 4 May 2013 14:51:56 +0000 (16:51 +0200)
committerRemi Collet <remi@php.net>
Sat, 4 May 2013 14:51:56 +0000 (16:51 +0200)
ext/gd/gd.c
ext/gd/php_gd.h

index f412b2f03bb094bdff623ad90e4fc10b28715f33..9b326305bc20232f3444eeb312df91f5a160ccbe 100644 (file)
 #include "config.h"
 #endif
 
-#ifdef HAVE_GD_PNG
-#include <png.h>
-#endif
-
-#ifdef HAVE_GD_JPG
-# include <jpeglib.h>
-#endif
-
 #include "php.h"
 #include "php_ini.h"
 #include "ext/standard/head.h"
 # include <Wingdi.h>
 #endif
 
+#ifdef HAVE_GD_PNG
+# include <png.h>
+#endif
+
+#ifdef HAVE_GD_JPG
+# include <jpeglib.h>
+#endif
+
+#ifdef HAVE_GD_XPM
+# include <X11/xpm.h>
+#endif
+
 #ifndef HAVE_GD_BUNDLED
 #ifdef HAVE_GD_PNG
 const char * gdPngGetVersionString()
index c9c9e9de905a8d96bb49a1c72e3a7602180f5c69..269c315e88be53d9847bb49484d7185e45431812 100644 (file)
@@ -28,7 +28,7 @@
 # endif
 #endif
 
-#if HAVE_LIBGD
+#if defined(HAVE_LIBGD) || defined(HAVE_GD_BUNDLED)
 
 /* open_basedir and safe_mode checks */
 #define PHP_GD_CHECK_OPEN_BASEDIR(filename, errormsg)                       \