mirror of
https://github.com/php/php-src.git
synced 2025-01-11 13:34:24 +08:00
- fix build when use with a museum freetype version (1.x)
This commit is contained in:
parent
7e465587c8
commit
ca1a485d65
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user