diff options
author | Remi Collet <remi@php.net> | 2020-04-15 09:07:21 +0200 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2020-04-15 09:07:21 +0200 |
commit | ed179c2ef4ed4d371267da9d1b745df519ffa0d5 (patch) | |
tree | bdd43be5088c5da6421a371c92074a034217f560 /ext/gd | |
parent | 1c334db4c818eb4175e9e246f3fc5d91bcfe1eef (diff) | |
download | php-git-ed179c2ef4ed4d371267da9d1b745df519ffa0d5.tar.gz |
workaround typo in system libgd 2.3.0
Diffstat (limited to 'ext/gd')
-rw-r--r-- | ext/gd/gd.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/gd/gd.c b/ext/gd/gd.c index 80b05ab89e..1c6cc74be6 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -80,6 +80,11 @@ static int le_gd_font; #define M_PI 3.14159265358979323846 #endif +/* workaround typo in system libgd 2.3.0 */ +#if defined(GD_FLIP_HORINZONTAL) && !defined(GD_FLIP_HORIZONTAL) +#define GD_FLIP_HORIZONTAL GD_FLIP_HORINZONTAL +#endif + #ifdef HAVE_GD_FREETYPE static void php_imagettftext_common(INTERNAL_FUNCTION_PARAMETERS, int, int); #endif |