]> granicus.if.org Git - php/commitdiff
- fix build when use with a museum freetype version (1.x)
authorPierre Joye <pajoye@php.net>
Mon, 7 May 2007 14:50:07 +0000 (14:50 +0000)
committerPierre Joye <pajoye@php.net>
Mon, 7 May 2007 14:50:07 +0000 (14:50 +0000)
ext/gd/gd.c

index ced521030105c46ff721a867d730e92e39fd34ee..464951b714e5b24804607106fdea455373dea7f2 100644 (file)
@@ -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);
        }