From 31de856abb29ce31ce0bf90c59303a9dda31498d Mon Sep 17 00:00:00 2001 From: Edin Kadribasic Date: Wed, 7 Apr 2004 22:27:32 +0000 Subject: [PATCH] Allow compilation with gdlib 1.8 --- ext/gd/gd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/gd/gd.c b/ext/gd/gd.c index ad2db04a3c6..ae835a8db7e 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++) {