summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2004-04-04 17:59:08 +0000
committerIlia Alshanetsky <iliaa@php.net>2004-04-04 17:59:08 +0000
commit3b27b0f18b4e6b80c9b53374b0638456fb15bcdb (patch)
treeb095496a8d7f662d34d3b4d9826ef8d274cf5ad2
parent2680fb4a9decbd413714fd1d828d534e75dcccd0 (diff)
downloadphp-git-3b27b0f18b4e6b80c9b53374b0638456fb15bcdb.tar.gz
Fixed a bug that prevented building of gd extension against external GD
lib 1.X.
-rw-r--r--ext/gd/gd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/gd/gd.c b/ext/gd/gd.c
index 6a9ab27add..ad2db04a3c 100644
--- a/ext/gd/gd.c
+++ b/ext/gd/gd.c
@@ -1720,6 +1720,7 @@ static void _php_image_output(INTERNAL_FUNCTION_PARAMETERS, int image_type, char
}
switch (image_type) {
+#ifdef HAVE_GD_WBMP
case PHP_GDIMG_CONVERT_WBM:
if (q == -1) {
q = 0;
@@ -1729,6 +1730,7 @@ static void _php_image_output(INTERNAL_FUNCTION_PARAMETERS, int image_type, char
}
gdImageWBMP(im, q, fp);
break;
+#endif
case PHP_GDIMG_TYPE_JPG:
(*func_p)(im, fp, q);
break;
@@ -1767,6 +1769,7 @@ static void _php_image_output(INTERNAL_FUNCTION_PARAMETERS, int image_type, char
}
switch (image_type) {
+#ifdef HAVE_GD_WBMP
case PHP_GDIMG_CONVERT_WBM:
if (q == -1) {
q = 0;
@@ -1776,6 +1779,7 @@ static void _php_image_output(INTERNAL_FUNCTION_PARAMETERS, int image_type, char
}
gdImageWBMP(im, q, tmp);
break;
+#endif
case PHP_GDIMG_TYPE_JPG:
(*func_p)(im, tmp, q);
break;