diff options
Diffstat (limited to 'src/lib/eina/eina_types.h')
-rw-r--r-- | src/lib/eina/eina_types.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/lib/eina/eina_types.h b/src/lib/eina/eina_types.h index 94e6ebc6f3..84979022c9 100644 --- a/src/lib/eina/eina_types.h +++ b/src/lib/eina/eina_types.h @@ -36,15 +36,15 @@ #endif #ifdef _WIN32 -# ifdef EFL_EINA_BUILD +# ifdef EFL_BUILD # ifdef DLL_EXPORT # define EAPI __declspec(dllexport) # else # define EAPI -# endif /* ! DLL_EXPORT */ +# endif # else # define EAPI __declspec(dllimport) -# endif /* ! EFL_EINA_BUILD */ +# endif # define EAPI_WEAK #else # ifdef __GNUC__ @@ -184,6 +184,14 @@ # define EINA_PURE # endif +# if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8) +# define EINA_HOT __attribute__ ((hot)) +# define EINA_COLD __attribute__ ((cold)) +# else +# define EINA_HOT +# define EINA_COLD +# endif + # if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4) # if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 3) # define EINA_PRINTF(fmt, arg) __attribute__((__format__ (__gnu_printf__, fmt, arg))) |