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.
This commit is contained in:
Derek Foreman 2016-09-16 15:56:46 -05:00
parent 50d508866e
commit 60f3f5fbfd
1 changed files with 10 additions and 3 deletions

View File

@ -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);