From: Ilia Alshanetsky Date: Tue, 10 Dec 2002 17:57:41 +0000 (+0000) Subject: Fixed build with GD 1.8.4 X-Git-Tag: RELEASE_1_0b3~75 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=99f2b9674f5039543f6f7fdc67f47473692d670f;p=php Fixed build with GD 1.8.4 --- diff --git a/ext/gd/gd.c b/ext/gd/gd.c index f3c2e163db..46ce06725e 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -1591,12 +1591,14 @@ static void _php_image_output(INTERNAL_FUNCTION_PARAMETERS, int image_type, char } (*func_p)(im, i, fp); break; +#if HAVE_LIBGD20 case PHP_GDIMG_TYPE_GD: if(im->trueColor){ gdImageTrueColorToPalette(im,1,256); } (*func_p)(im, fp); break; +#endif default: (*func_p)(im, fp); break; @@ -1628,12 +1630,14 @@ static void _php_image_output(INTERNAL_FUNCTION_PARAMETERS, int image_type, char } (*func_p)(im, q, tmp); break; +#if HAVE_LIBGD20 case PHP_GDIMG_TYPE_GD: if (im->trueColor) { gdImageTrueColorToPalette(im,1,256); } (*func_p)(im, tmp); break; +#endif default: (*func_p)(im, tmp); break;