Skip to content

Commit ed179c2

Browse files
committed
workaround typo in system libgd 2.3.0
1 parent 1c334db commit ed179c2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ext/gd/gd.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@ static int le_gd_font;
8080
#define M_PI 3.14159265358979323846
8181
#endif
8282

83+
/* workaround typo in system libgd 2.3.0 */
84+
#if defined(GD_FLIP_HORINZONTAL) && !defined(GD_FLIP_HORIZONTAL)
85+
#define GD_FLIP_HORIZONTAL GD_FLIP_HORINZONTAL
86+
#endif
87+
8388
#ifdef HAVE_GD_FREETYPE
8489
static void php_imagettftext_common(INTERNAL_FUNCTION_PARAMETERS, int, int);
8590
#endif

0 commit comments

Comments
 (0)