From 7c420e0631fb5bbab3846b35b7b0e982fabf75f0 Mon Sep 17 00:00:00 2001 From: WooHyun Jung Date: Mon, 5 Aug 2019 20:43:50 +0900 Subject: [PATCH] elm_module_tizen_helper : needs to include the definition for EAPI Change-Id: I81084d2d24cdcd0f3a4dd32f092d84aa84c448ca --- src/lib/elementary/elm_module_tizen_helper.h | 42 ++++++++++++++++++++++++++-- 1 file changed, 40 insertions(+), 2 deletions(-) diff --git a/src/lib/elementary/elm_module_tizen_helper.h b/src/lib/elementary/elm_module_tizen_helper.h index f43fb6b..7f868fe 100644 --- a/src/lib/elementary/elm_module_tizen_helper.h +++ b/src/lib/elementary/elm_module_tizen_helper.h @@ -1,6 +1,44 @@ +// special header to share structure between entry and module + #ifndef ELM_MODULE_TIZEN_HELPER_H #define ELM_MODULE_TIZEN_HELPER_H -// special header to share structure between entry and module + +#include "elm_priv.h" + +#ifdef EAPI +# undef EAPI +#endif +#ifdef EWAPI +# undef EWAPI +#endif + +#ifdef _WIN32 +# ifdef EFL_BUILD +# ifdef DLL_EXPORT +# define EAPI __declspec(dllexport) +# else +# define EAPI +# endif +# else +# define EAPI __declspec(dllimport) +# endif +# 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 +# define EAPI +# define EAPI_WEAK +# endif +#endif + +#define EWAPI EAPI EAPI_WEAK typedef void (*cpfunc)(void *data, Evas_Object *obj, void *event_info); @@ -58,4 +96,4 @@ typedef struct _Elm_Entry_Extension_data Elm_Entry_Extension_data; void elm_entry_extension_module_data_get(Evas_Object *obj,Elm_Entry_Extension_data *ext_mod); -#endif //ELM_MODULE_TIZEN_HELPER_H \ No newline at end of file +#endif //ELM_MODULE_TIZEN_HELPER_H -- 2.7.4