diff options
| author | Pierre Joye <pajoye@php.net> | 2009-05-26 13:35:59 +0000 |
|---|---|---|
| committer | Pierre Joye <pajoye@php.net> | 2009-05-26 13:35:59 +0000 |
| commit | 704d7587b0263f895dfedaf73310ab4b96456a5c (patch) | |
| tree | eb073ea2bdb067e203a3e765e2f6fe84af73d676 /ext/gd | |
| parent | 6b3e2b19102ecd2eaa0babd7872a78696e8f3506 (diff) | |
| download | php-git-704d7587b0263f895dfedaf73310ab4b96456a5c.tar.gz | |
- enable filter constants
Diffstat (limited to 'ext/gd')
| -rw-r--r-- | ext/gd/gd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/gd/gd.c b/ext/gd/gd.c index c56f75d495..8a9ce7d431 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -1175,6 +1175,9 @@ PHP_MINIT_FUNCTION(gd) REGISTER_LONG_CONSTANT("IMG_EFFECT_NORMAL", gdEffectNormal, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("IMG_EFFECT_OVERLAY", gdEffectOverlay, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("GD_BUNDLED", 1, CONST_CS | CONST_PERSISTENT); +#else + REGISTER_LONG_CONSTANT("GD_BUNDLED", 0, CONST_CS | CONST_PERSISTENT); +#endif /* Section Filters */ REGISTER_LONG_CONSTANT("IMG_FILTER_NEGATE", IMAGE_FILTER_NEGATE, CONST_CS | CONST_PERSISTENT); @@ -1190,9 +1193,6 @@ PHP_MINIT_FUNCTION(gd) REGISTER_LONG_CONSTANT("IMG_FILTER_SMOOTH", IMAGE_FILTER_SMOOTH, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("IMG_FILTER_PIXELATE", IMAGE_FILTER_PIXELATE, CONST_CS | CONST_PERSISTENT); /* End Section Filters */ -#else - REGISTER_LONG_CONSTANT("GD_BUNDLED", 0, CONST_CS | CONST_PERSISTENT); -#endif #ifdef GD_VERSION_STRING REGISTER_STRING_CONSTANT("GD_VERSION", GD_VERSION_STRING, CONST_CS | CONST_PERSISTENT); |
