GD
view release on metacpan or search on metacpan
# define GD_VERSION 10000
# define GD_VERSION_STRING "?"
# endif
#else
# define GD_VERSION ((GD_MAJOR_VERSION * 10000) +\
(GD_MINOR_VERSION * 100) +\
GD_RELEASE_VERSION)
#endif
/* libgd implements and exports gdImageBoundsSafe() (gd.c), but at least the
* 2.4.0 gd.h no longer declares it publicly (gdImageBoundsSafeMacro in
* gd_intern.h is internal-only). Redeclare it here; this is harmless even
* against a gd.h that does declare it, since the signature is identical. */
#if GD_VERSION >= 20400
extern int gdImageBoundsSafe(gdImagePtr im, int x, int y);
#endif
/* gdPaletteQuantizationMethod and gdUhdrFormat are plain C enums, not
* preprocessor macros, so the #ifdef checks generated by ExtUtils::Constant
* would never see them. Paint them blue with harmless self-referential
* macros so #ifdef succeeds while the enumerator value still resolves
( run in 2.143 seconds using v1.01-cache-2.11-cpan-5c0b1e786e0 )