summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2007-05-07 14:50:07 +0000
committerPierre Joye <pajoye@php.net>2007-05-07 14:50:07 +0000
commitca1a485d6505a6a7a8bd0d9c6c1005a23e14be80 (patch)
treebbe3354f44a2559859f71facc42a4d68da36e455
parent7e465587c8add43fa6ff0e5b9294be2bfa06a057 (diff)
downloadphp-git-ca1a485d6505a6a7a8bd0d9c6c1005a23e14be80.tar.gz
- fix build when use with a museum freetype version (1.x)
-rw-r--r--ext/gd/gd.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/gd/gd.c b/ext/gd/gd.c
index ced5210301..464951b714 100644
--- a/ext/gd/gd.c
+++ b/ext/gd/gd.c
@@ -1288,10 +1288,13 @@ PHP_MINFO_FUNCTION(gd)
php_info_print_table_row(2, "FreeType Linkage", "with freetype");
{
char tmp[256];
+
#ifdef FREETYPE_PATCH
- snprintf(tmp, sizeof(tmp), "%d.%d.%d", FREETYPE_MAJOR, FREETYPE_MINOR, FREETYPE_PATCH);
+ snprintf(tmp, sizeof(tmp), "%d.%d.%d", FREETYPE_MAJOR, FREETYPE_MINOR, FREETYPE_PATCH);
+#elif defined(FREETYPE_MAJOR)
+ snprintf(tmp, sizeof(tmp), "%d.%d", FREETYPE_MAJOR, FREETYPE_MINOR);
#else
- snprintf(tmp, sizeof(tmp), "%d.%d", FREETYPE_MAJOR, FREETYPE_MINOR);
+ snprintf(tmp, sizeof(tmp), "1.x");
#endif
php_info_print_table_row(2, "FreeType Version", tmp);
}