From 7a7b388401d84fe6caf2c702759bce267d1eb41f Mon Sep 17 00:00:00 2001 From: Gina Peter Banyard Date: Fri, 4 Apr 2025 21:56:22 +0100 Subject: [PATCH] ext/gd: Move FREETYPE defines into the ifdef --- ext/gd/gd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/gd/gd.c b/ext/gd/gd.c index be0961578a6..9017d58bd75 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -3311,10 +3311,11 @@ PHP_FUNCTION(imagegetclip) } /* }}} */ +#ifdef HAVE_GD_FREETYPE + #define TTFTEXT_DRAW 0 #define TTFTEXT_BBOX 1 -#ifdef HAVE_GD_FREETYPE /* {{{ Give the bounding box of a text using fonts via freetype2 */ PHP_FUNCTION(imageftbbox) {