From: Ilia Alshanetsky Date: Wed, 4 Dec 2002 23:43:06 +0000 (+0000) Subject: MFH (build fix, when xpm support is not avaliable). X-Git-Tag: php-4.3.0RC3~72 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=80960e148bdad924f48c49b3ce4631ad4364b885;p=php MFH (build fix, when xpm support is not avaliable). --- diff --git a/ext/gd/gd.c b/ext/gd/gd.c index aad7eb61eb..43dc555762 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -1358,9 +1358,11 @@ static void _php_image_create_from(INTERNAL_FUNCTION_PARAMETERS, int image_type, case PHP_GDIMG_TYPE_GD2PART: im = (*func_p)(fp, Z_LVAL_PP(srcx), Z_LVAL_PP(srcy), Z_LVAL_PP(width), Z_LVAL_PP(height)); break; +#ifdef HAVE_GD_XPM case PHP_GDIMG_TYPE_XPM: im = gdImageCreateFromXpm(fn); break; +#endif default: im = (*func_p)(fp); break;