From: Edin Kadribasic Date: Wed, 7 Apr 2004 22:27:32 +0000 (+0000) Subject: Allow compilation with gdlib 1.8 X-Git-Tag: php-5.0.0RC2RC1~58 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=31de856abb29ce31ce0bf90c59303a9dda31498d;p=php Allow compilation with gdlib 1.8 --- diff --git a/ext/gd/gd.c b/ext/gd/gd.c index ad2db04a3c..ae835a8db7 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -3755,9 +3755,11 @@ static void _php_image_bw_convert(gdImagePtr im_org, gdIOCtx *out, int threshold return; } +#if HAVE_LIBGD20 if (im_org->trueColor) { gdImageTrueColorToPalette(im_org, 1, 256); } +#endif for (y = 0; y < dest_height; y++) { for (x = 0; x < dest_width; x++) {