raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=aa92cddb8ba9b539f2e1c34d87005e1536001e4a

commit aa92cddb8ba9b539f2e1c34d87005e1536001e4a
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Fri Apr 28 18:37:40 2017 +0900

    evas font code - build on older freetypes without new definitions
    
    use the actual #35 as:
    
    in freetype and it cant change without breaking abi...
    
    @fix
---
 src/lib/evas/common/evas_font_main.c | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/src/lib/evas/common/evas_font_main.c 
b/src/lib/evas/common/evas_font_main.c
index ba56848..91db4d5 100644
--- a/src/lib/evas/common/evas_font_main.c
+++ b/src/lib/evas/common/evas_font_main.c
@@ -30,14 +30,19 @@ evas_common_font_init(void)
 {
    int error;
    const char *s;
-   FT_UInt interpreter_version = TT_INTERPRETER_VERSION_35;
+   FT_UInt interpreter_version =
+#ifndef TT_INTERPRETER_VERSION_35
+   TT_INTERPRETER_VERSION_35;
+#else
+   35;
+#endif
 
    initialised++;
    if (initialised != 1) return;
    error = FT_Init_FreeType(&evas_ft_lib);
    if (error) return;
-   FT_Property_Set(evas_ft_lib,
-         "truetype", "interpreter-version", &interpreter_version);
+   FT_Property_Set(evas_ft_lib, "truetype", "interpreter-version",
+                   &interpreter_version);
    evas_common_font_load_init();
    evas_common_font_draw_init();
    s = getenv("EVAS_FONT_DPI");

-- 


Reply via email to