]> granicus.if.org Git - php/commitdiff
Fixed a bug that prevented building of gd extension against external GD
authorIlia Alshanetsky <iliaa@php.net>
Sun, 4 Apr 2004 17:59:08 +0000 (17:59 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Sun, 4 Apr 2004 17:59:08 +0000 (17:59 +0000)
lib 1.X.

ext/gd/gd.c

index 6a9ab27add14687557a696b0869232f7356857b8..ad2db04a3c6a7d1cfa1b7ffc025762d4d1555608 100644 (file)
@@ -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;