diff options
author | Ondřej Surý <ondrej@sury.org> | 2013-04-25 13:39:35 +0200 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2013-05-04 16:49:35 +0200 |
commit | 6aedadce0a65ea4de3a971cb3aaee1cadade2c8d (patch) | |
tree | b69dceca66d4071c0d7042209d826f944ea11a94 /ext/gd/php_gd.h | |
parent | 9155d17fefec7c2a71e1c0b8d8324d5e1fa43433 (diff) | |
download | php-git-6aedadce0a65ea4de3a971cb3aaee1cadade2c8d.tar.gz |
Allow to use new GD-2.1.0 function from system library
Diffstat (limited to 'ext/gd/php_gd.h')
-rw-r--r-- | ext/gd/php_gd.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/gd/php_gd.h b/ext/gd/php_gd.h index c42ebade13..280705436a 100644 --- a/ext/gd/php_gd.h +++ b/ext/gd/php_gd.h @@ -129,6 +129,9 @@ PHP_FUNCTION(imageflip); #ifdef HAVE_GD_BUNDLED PHP_FUNCTION(imageantialias); +#endif + +#if defined(HAVE_GD_BUNDLED) || defined(HAVE_LIBGD21) PHP_FUNCTION(imagecrop); PHP_FUNCTION(imagecropauto); PHP_FUNCTION(imagescale); @@ -154,7 +157,7 @@ PHP_FUNCTION(imagecreatefromwbmp); PHP_FUNCTION(imagecreatefromgd); PHP_FUNCTION(imagecreatefromgd2); PHP_FUNCTION(imagecreatefromgd2part); -#if defined(HAVE_GD_XPM) && defined(HAVE_GD_BUNDLED) +#if defined(HAVE_GD_XPM) && (defined(HAVE_GD_BUNDLED) || defined(HAVE_LIBGD21)) PHP_FUNCTION(imagecreatefromxpm); #endif @@ -205,7 +208,7 @@ PHP_FUNCTION(image2wbmp); PHP_FUNCTION(imagecolormatch); -#if HAVE_GD_BUNDLED +#if defined(HAVE_GD_BUNDLED) || defined(HAVE_LIBGD21) PHP_FUNCTION(imagelayereffect); PHP_FUNCTION(imagexbm); #endif |