From 32e9ea6c648ee3954a0e856780205be15e34430d Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Fri, 1 Feb 2002 08:53:47 +0000 Subject: [PATCH] - Fix for bug 14899 (patch by Sander Roobol ) --- ext/gd/gd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ext/gd/gd.c b/ext/gd/gd.c index fd2458d33863f..e5f8aa200e09e 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -928,7 +928,7 @@ PHP_FUNCTION(imagecreate) PHP_FUNCTION(imagetypes) { int ret=0; -#ifdef HAVE_GD_GIF +#ifdef HAVE_GD_GIF_CREATE ret = 1; #endif #ifdef HAVE_GD_JPG @@ -1204,7 +1204,7 @@ PHP_FUNCTION(imagecreatefromgif) #else /* HAVE_GD_GIF_READ */ php_error(E_WARNING, "ImageCreateFromGif: No GIF read support in this PHP build"); RETURN_FALSE; -#endif /* HAVE_GD_GIF */ +#endif /* HAVE_GD_GIF_READ */ } /* }}} */ @@ -1431,10 +1431,10 @@ PHP_FUNCTION(imagegif) #else _php_image_output(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_GDIMG_TYPE_GIF, "GIF", gdImageGif); #endif -#else /* HAVE_GD_GIF */ +#else /* HAVE_GD_GIF_CREATE */ php_error(E_WARNING, "ImageGif: No GIF create support in this PHP build"); RETURN_FALSE; -#endif /* HAVE_GD_GIF */ +#endif /* HAVE_GD_GIF_CREATE */ } /* }}} */