iliaa           Mon Nov 25 09:25:52 2002 EDT

  Modified files:              
    /php4/ext/gd/libgd  gd_gd2.c 
  Log:
  Removed un-needed zlib check.
  
  
Index: php4/ext/gd/libgd/gd_gd2.c
diff -u php4/ext/gd/libgd/gd_gd2.c:1.5 php4/ext/gd/libgd/gd_gd2.c:1.6
--- php4/ext/gd/libgd/gd_gd2.c:1.5      Sun Nov 24 20:51:53 2002
+++ php4/ext/gd/libgd/gd_gd2.c  Mon Nov 25 09:25:52 2002
@@ -18,10 +18,6 @@
 #include "gd.h"
 #include "gdhelpers.h"
 
-/* 2.03: gd2 is no longer mandatory */
-/* JCE - test after including gd.h so that HAVE_LIBZ can be set in
- * a config.h file included by gd.h */
-#ifdef HAVE_ZLIB
 #include <zlib.h>
 
 #define TRUE 1
@@ -926,18 +922,3 @@
   out->gd_free (out);
   return rv;
 }
-
-#else /* no HAVE_ZLIB */
-gdImagePtr
-gdImageCreateFromGd2 (FILE * inFile)
-{
-  fprintf(stderr,"GD2 support is not available - no libz\n");
-  return NULL;
-}
-gdImagePtr
-gdImageCreateFromGd2Ctx (gdIOCtxPtr in)
-{
-  fprintf(stderr,"GD2 support is not available - no libz\n");
-  return NULL;
-}
-#endif /* HAVE_ZLIB */



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to