summaryrefslogtreecommitdiff
path: root/ext/gd
diff options
context:
space:
mode:
authorRemi Collet <remi@php.net>2020-04-15 09:07:21 +0200
committerRemi Collet <remi@php.net>2020-04-15 09:07:21 +0200
commited179c2ef4ed4d371267da9d1b745df519ffa0d5 (patch)
treebdd43be5088c5da6421a371c92074a034217f560 /ext/gd
parent1c334db4c818eb4175e9e246f3fc5d91bcfe1eef (diff)
downloadphp-git-ed179c2ef4ed4d371267da9d1b745df519ffa0d5.tar.gz
workaround typo in system libgd 2.3.0
Diffstat (limited to 'ext/gd')
-rw-r--r--ext/gd/gd.c5
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