iliaa Wed Dec 4 18:43:06 2002 EDT
Modified files: (Branch: PHP_4_3)
/php4/ext/gd gd.c
Log:
MFH (build fix, when xpm support is not avaliable).
Index: php4/ext/gd/gd.c
diff -u php4/ext/gd/gd.c:1.221.2.4 php4/ext/gd/gd.c:1.221.2.5
--- php4/ext/gd/gd.c:1.221.2.4 Wed Dec 4 16:07:09 2002
+++ php4/ext/gd/gd.c Wed Dec 4 18:43:06 2002
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: gd.c,v 1.221.2.4 2002/12/04 21:07:09 iliaa Exp $ */
+/* $Id: gd.c,v 1.221.2.5 2002/12/04 23:43:06 iliaa Exp $ */
/* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center,
Cold Spring Harbor Labs. */
@@ -1358,9 +1358,11 @@
case PHP_GDIMG_TYPE_GD2PART:
im = (*func_p)(fp, Z_LVAL_PP(srcx), Z_LVAL_PP(srcy),
Z_LVAL_PP(width), Z_LVAL_PP(height));
break;
+#ifdef HAVE_GD_XPM
case PHP_GDIMG_TYPE_XPM:
im = gdImageCreateFromXpm(fn);
break;
+#endif
default:
im = (*func_p)(fp);
break;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php