From d8a83a37220a1ccdec39a00761d4ae1e110f7ddd Mon Sep 17 00:00:00 2001 From: Hartmut Holzgraefe Date: Fri, 9 Feb 2001 21:04:45 +0000 Subject: [PATCH] libjpeg-not-installed protection --- ext/gd/gd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ext/gd/gd.c b/ext/gd/gd.c index c8acb06644..853a1813fa 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -2761,6 +2761,7 @@ static void _php_image_bw_convert( gdImagePtr im_org, int threshold, FILE *out) } +#ifdef HAVE_GD_JPG /* _php_image_convert converts jpeg/png images to wbmp and resizes them as needed */ static void _php_image_convert(INTERNAL_FUNCTION_PARAMETERS, int image_type ) { zval **f_org, **f_dest, **height, **width, **threshold; @@ -2938,6 +2939,8 @@ static void _php_image_convert(INTERNAL_FUNCTION_PARAMETERS, int image_type ) { } WRONG_PARAM_COUNT; } +#endif /* HAVE_GD_JPG */ + #endif /* HAVE_GD_WBMP */ -- 2.40.0