iliaa Sun Apr 4 13:59:09 2004 EDT
Modified files:
/php-src/ext/gd gd.c
Log:
Fixed a bug that prevented building of gd extension against external GD
lib 1.X.
http://cvs.php.net/diff.php/php-src/ext/gd/gd.c?r1=1.289&r2=1.290&ty=u
Index: php-src/ext/gd/gd.c
diff -u php-src/ext/gd/gd.c:1.289 php-src/ext/gd/gd.c:1.290
--- php-src/ext/gd/gd.c:1.289 Mon Mar 29 13:20:32 2004
+++ php-src/ext/gd/gd.c Sun Apr 4 13:59:08 2004
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: gd.c,v 1.289 2004/03/29 18:20:32 iliaa Exp $ */
+/* $Id: gd.c,v 1.290 2004/04/04 17:59:08 iliaa Exp $ */
/* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center,
Cold Spring Harbor Labs. */
@@ -1720,6 +1720,7 @@
}
switch (image_type) {
+#ifdef HAVE_GD_WBMP
case PHP_GDIMG_CONVERT_WBM:
if (q == -1) {
q = 0;
@@ -1729,6 +1730,7 @@
}
gdImageWBMP(im, q, fp);
break;
+#endif
case PHP_GDIMG_TYPE_JPG:
(*func_p)(im, fp, q);
break;
@@ -1767,6 +1769,7 @@
}
switch (image_type) {
+#ifdef HAVE_GD_WBMP
case PHP_GDIMG_CONVERT_WBM:
if (q == -1) {
q = 0;
@@ -1776,6 +1779,7 @@
}
gdImageWBMP(im, q, tmp);
break;
+#endif
case PHP_GDIMG_TYPE_JPG:
(*func_p)(im, tmp, q);
break;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php