]> granicus.if.org Git - php/commitdiff
Allow compilation with gdlib 1.8
authorEdin Kadribasic <edink@php.net>
Wed, 7 Apr 2004 22:27:32 +0000 (22:27 +0000)
committerEdin Kadribasic <edink@php.net>
Wed, 7 Apr 2004 22:27:32 +0000 (22:27 +0000)
ext/gd/gd.c

index ad2db04a3c6a7d1cfa1b7ffc025762d4d1555608..ae835a8db7e6daace25e1319ed4dffe33ce4c0ed 100644 (file)
@@ -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++) {