jayji pushed a commit to branch master.

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

commit a1e05aa0890faba20205a5c0f998f331a2ca4b24
Author: Jean Guyomarc'h <[email protected]>
Date:   Tue Dec 19 14:11:44 2017 +0100

    evas/elm: fix visibility of some symbols
    
    Public symbols were defined internal to Evas/Elementary on macOS, making
    the link of external modules unfeasible.
    
    - EAPI was messed up by an invalid inclusion of evas_text_utils.h, making
      some symbols private instead of public.
    - A similar issue was present in evas_font_draw.c, where the symbols
      were directly imported without the proper definition of EAPI.
    - Elementary.h did include some eo-generated headers, but for windows
      only. It should not been restricted to windows, as it allows to export
      symbols to external modules.
    
    Fixes T6448.
---
 src/lib/elementary/Elementary.h      | 5 -----
 src/lib/evas/common/evas_font.h      | 3 ++-
 src/lib/evas/common/evas_font_draw.c | 2 +-
 3 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/src/lib/elementary/Elementary.h b/src/lib/elementary/Elementary.h
index e9a30fd3c4..20e4d70130 100644
--- a/src/lib/elementary/Elementary.h
+++ b/src/lib/elementary/Elementary.h
@@ -217,9 +217,6 @@ EAPI extern Elm_Version *elm_version;
 #include <elm_glview.h>
 #include <elm_grid.h>
 
-
-#ifdef _WIN32
-#ifdef ELEMENTARY_BUILD
 // Elm legacy headers that require EAPI defined
 #include <elm_spinner.eo.h>
 #include <elm_entry.eo.h>
@@ -232,8 +229,6 @@ EAPI extern Elm_Version *elm_version;
 #include <elm_systray.eo.h>
 #include <elm_notify.eo.h>
 #include <elm_hoversel.eo.h>
-#endif
-#endif
 
 #include <elm_hover.h>
 #include <elm_image.h>
diff --git a/src/lib/evas/common/evas_font.h b/src/lib/evas/common/evas_font.h
index 5c4f07c699..1a010bfe05 100644
--- a/src/lib/evas/common/evas_font.h
+++ b/src/lib/evas/common/evas_font.h
@@ -20,6 +20,8 @@ typedef unsigned long long    DATA64;
 
 #include <Eina.h>
 
+#include "evas_text_utils.h"
+
 #ifdef EAPI
 # undef EAPI
 #endif
@@ -54,7 +56,6 @@ typedef unsigned long long    DATA64;
 #define LKU(x) eina_lock_release(&(x))
 #define LKDBG(x) eina_lock_debug(&(x))
 
-#include "evas_text_utils.h"
 
 
 enum _Evas_Font_Style
diff --git a/src/lib/evas/common/evas_font_draw.c 
b/src/lib/evas/common/evas_font_draw.c
index f40e9b50c8..9e42c9fe8e 100644
--- a/src/lib/evas/common/evas_font_draw.c
+++ b/src/lib/evas/common/evas_font_draw.c
@@ -1,4 +1,4 @@
-#include "evas_font_draw.h"
+#include "evas_common_private.h"
 #include "evas_private.h"
 #include "evas_blend_private.h"
 

-- 


Reply via email to