summaryrefslogtreecommitdiff
path: root/ext/gd/php3_gd.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/gd/php3_gd.h')
-rw-r--r--ext/gd/php3_gd.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/gd/php3_gd.h b/ext/gd/php3_gd.h
index d3f4dfced3..d6ef1d53b1 100644
--- a/ext/gd/php3_gd.h
+++ b/ext/gd/php3_gd.h
@@ -34,6 +34,11 @@
#ifndef _PHP3_GD_H
#define _PHP3_GD_H
+
+#if defined(HAVE_LIBTTF) && defined(HAVE_FREETYPE_H)
+#define ENABLE_GD_TTF
+#endif
+
#if COMPILE_DL
#undef HAVE_LIBGD
#define HAVE_LIBGD 1
@@ -89,7 +94,7 @@ PHP_FUNCTION(imagesyfn);
void php3_free_gd_font(gdFontPtr);
void _php3_gdimagecharup(gdImagePtr, gdFontPtr, int, int, int, int);
PHP_FUNCTION(imagedashedline);
-#ifdef HAVE_LIBTTF
+#ifdef ENABLE_GD_TTF
PHP_FUNCTION(imagettfbbox);
PHP_FUNCTION(imagettftext);
#endif