derekf pushed a commit to branch master.

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

commit 60f3f5fbfd8b60aceedeafd279eab51ccd78c72f
Author: Derek Foreman <der...@osg.samsung.com>
Date:   Fri Sep 16 15:56:46 2016 -0500

    eina_cpu: Fix broken E_API macro
    
    Oops, I cut and paste it from a wrong file.
    
    Thanks to Vincent Torri for the quick catch.
---
 src/lib/eina/eina_cpu_private.h | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/src/lib/eina/eina_cpu_private.h b/src/lib/eina/eina_cpu_private.h
index 667f0a7..e114b01 100644
--- a/src/lib/eina/eina_cpu_private.h
+++ b/src/lib/eina/eina_cpu_private.h
@@ -6,7 +6,7 @@
 #endif
 
 #ifdef _WIN32
-# ifdef EFL_ECORE_BUILD
+# ifdef EFL_EINA_BUILD
 #  ifdef DLL_EXPORT
 #   define EAPI __declspec(dllexport)
 #  else
@@ -14,18 +14,25 @@
 #  endif /* ! DLL_EXPORT */
 # else
 #  define EAPI __declspec(dllimport)
-# endif /* ! EFL_ECORE_BUILD */
+# endif /* ! EFL_EINA_BUILD */
+# define EAPI_WEAK
 #else
 # ifdef __GNUC__
 #  if __GNUC__ >= 4
 #   define EAPI __attribute__ ((visibility("default")))
+#   define EAPI_WEAK __attribute__ ((weak))
 #  else
 #   define EAPI
+#   define EAPI_WEAK
 #  endif
 # else
+/**
+ * @def EAPI
+ * @brief Used to export functions(by changing visibility).
+ */
 #  define EAPI
 # endif
-#endif /* ! _WIN32 */
+#endif
 
 EAPI int _eina_cpu_fast_core_get(void);
 

-- 


Reply via email to