From: Remi Collet Date: Sat, 4 May 2013 14:51:56 +0000 (+0200) Subject: fix build with bundled libgd X-Git-Tag: php-5.5.0RC1~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=00b097d2a3bb36dd639311b1175582d81f5cc554;p=php fix build with bundled libgd --- diff --git a/ext/gd/gd.c b/ext/gd/gd.c index f412b2f03b..9b326305bc 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -29,14 +29,6 @@ #include "config.h" #endif -#ifdef HAVE_GD_PNG -#include -#endif - -#ifdef HAVE_GD_JPG -# include -#endif - #include "php.h" #include "php_ini.h" #include "ext/standard/head.h" @@ -61,6 +53,18 @@ # include #endif +#ifdef HAVE_GD_PNG +# include +#endif + +#ifdef HAVE_GD_JPG +# include +#endif + +#ifdef HAVE_GD_XPM +# include +#endif + #ifndef HAVE_GD_BUNDLED #ifdef HAVE_GD_PNG const char * gdPngGetVersionString() diff --git a/ext/gd/php_gd.h b/ext/gd/php_gd.h index c9c9e9de90..269c315e88 100644 --- a/ext/gd/php_gd.h +++ b/ext/gd/php_gd.h @@ -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) \