Re: RE: gd still broken

From: Date: Fri, 13 Dec 2002 09:06:39 +0000
Subject: Re: RE: gd still broken
References: 1  Groups: php.qa 
Request: Send a blank email to php-qa+get-7241@lists.php.net to get a copy of this message
On Fri, 13 Dec 2002, Dan Rossi wrote: > i can honestly say checking for a particular version will not help instead > check for versions less than the version that requires gd_free which is > gd-2.0.8 > > #if HAVE_LIBGD204 > io_ctx->gd_free(io_ctx); > #else > io_ctx->free(io_ctx); > #endif > > i cant see where this define is coming from HAVE_LIBGD204 ?? From configure: AC_TRY_COMPILE( [ #include <gd.h> #include <stdlib.h> ], [ gdIOCtx *ctx; ctx = malloc(sizeof(gdIOCtx)); ctx->gd_free = 1; ], [ AC_DEFINE(HAVE_LIBGD204, 1, [ ]) ]) It defines it if the check finds gd_free to be part of the struct instead of just 'free'. Derick -- ------------------------------------------------------------------------- Derick Rethans http://derickrethans.nl/ PHP Magazine - PHP Magazine for Professionals http://php-mag.net/ -------------------------------------------------------------------------

« previous php.qa (#7241) next »