edink           Wed Apr  7 18:27:32 2004 EDT

  Modified files:              
    /php-src/ext/gd     gd.c 
  Log:
  Allow compilation with gdlib 1.8
  
http://cvs.php.net/diff.php/php-src/ext/gd/gd.c?r1=1.290&r2=1.291&ty=u
Index: php-src/ext/gd/gd.c
diff -u php-src/ext/gd/gd.c:1.290 php-src/ext/gd/gd.c:1.291
--- php-src/ext/gd/gd.c:1.290   Sun Apr  4 13:59:08 2004
+++ php-src/ext/gd/gd.c Wed Apr  7 18:27:32 2004
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: gd.c,v 1.290 2004/04/04 17:59:08 iliaa Exp $ */
+/* $Id: gd.c,v 1.291 2004/04/07 22:27:32 edink Exp $ */
 
 /* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center,
    Cold Spring Harbor Labs. */
@@ -3755,9 +3755,11 @@
                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++) {

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to