cedric pushed a commit to branch master.

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

commit 239c326b96bef137bf9ace35cbc8c9ce4ba7efac
Author: Cedric BAIL <[email protected]>
Date:   Sun Nov 17 04:47:58 2013 +0100

    evas: fix build without FontConfig.
    
    Note that we still support building without FontConfig, so please
    guard access to it.
---
 src/lib/evas/canvas/evas_font_dir.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/lib/evas/canvas/evas_font_dir.c 
b/src/lib/evas/canvas/evas_font_dir.c
index c990a54..383082e 100644
--- a/src/lib/evas/canvas/evas_font_dir.c
+++ b/src/lib/evas/canvas/evas_font_dir.c
@@ -1220,8 +1220,10 @@ _canvas_font_path_clear(Eo *eo_e EINA_UNUSED, void *_pd, 
va_list *list EINA_UNUS
        evas->font_path = eina_list_remove(evas->font_path, 
evas->font_path->data);
      }
 
+#ifdef HAVE_FONTCONFIG
    if (fc_config)
       FcConfigAppFontClear(fc_config);
+#endif
 }
 
 EAPI void
@@ -1242,8 +1244,10 @@ _canvas_font_path_append(Eo *eo_e EINA_UNUSED, void 
*_pd, va_list *list)
    e->font_path = eina_list_append(e->font_path, eina_stringshare_add(path));
 
    evas_font_init();
+#ifdef HAVE_FONTCONFIG
    if (fc_config)
       FcConfigAppFontAddDir(fc_config, (const FcChar8 *) path);
+#endif
 }
 
 EAPI void
@@ -1264,8 +1268,10 @@ _canvas_font_path_prepend(Eo *eo_e EINA_UNUSED, void 
*_pd, va_list *list)
    e->font_path = eina_list_prepend(e->font_path, eina_stringshare_add(path));
 
    evas_font_init();
+#ifdef HAVE_FONTCONFIG
    if (fc_config)
       FcConfigAppFontAddDir(fc_config, (const FcChar8 *) path);
+#endif
 }
 
 EAPI const Eina_List *

-- 


Reply via email to