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

index 2a9890968ce405e5b07a3916fd591b6379addf3e..046e08451ab703cb8d408ee0facbcf55c87fe362 100644 (file)
@@ -3639,9 +3639,11 @@ static void _php_image_bw_convert( gdImagePtr im_org, gdIOCtx *out, int threshol
                return;
        }
 
+#ifdef 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++) {