]> granicus.if.org Git - php/commitdiff
libjpeg-not-installed protection
authorHartmut Holzgraefe <hholzgra@php.net>
Fri, 9 Feb 2001 21:04:45 +0000 (21:04 +0000)
committerHartmut Holzgraefe <hholzgra@php.net>
Fri, 9 Feb 2001 21:04:45 +0000 (21:04 +0000)
ext/gd/gd.c

index c8acb06644f97ae02515ab1efde2207246813b82..853a1813fa5ded27dceb50c4dc513ccff510f397 100644 (file)
@@ -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 */