iliaa Tue Dec 10 12:57:42 2002 EDT
Modified files:
/php4/ext/gd gd.c
Log:
Fixed build with GD 1.8.4
Index: php4/ext/gd/gd.c
diff -u php4/ext/gd/gd.c:1.235 php4/ext/gd/gd.c:1.236
--- php4/ext/gd/gd.c:1.235 Thu Dec 5 21:16:06 2002
+++ php4/ext/gd/gd.c Tue Dec 10 12:57:41 2002
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: gd.c,v 1.235 2002/12/06 02:16:06 pajoye Exp $ */
+/* $Id: gd.c,v 1.236 2002/12/10 17:57:41 iliaa Exp $ */
/* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center,
Cold Spring Harbor Labs. */
@@ -1591,12 +1591,14 @@
}
(*func_p)(im, i, fp);
break;
+#if HAVE_LIBGD20
case PHP_GDIMG_TYPE_GD:
if(im->trueColor){
gdImageTrueColorToPalette(im,1,256);
}
(*func_p)(im, fp);
break;
+#endif
default:
(*func_p)(im, fp);
break;
@@ -1628,12 +1630,14 @@
}
(*func_p)(im, q, tmp);
break;
+#if HAVE_LIBGD20
case PHP_GDIMG_TYPE_GD:
if (im->trueColor) {
gdImageTrueColorToPalette(im,1,256);
}
(*func_p)(im, tmp);
break;
+#endif
default:
(*func_p)(im, tmp);
break;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php