diff options
author | ChunEon Park <hermet@hermet.pe.kr> | 2015-08-22 16:09:25 +0900 |
---|---|---|
committer | ChunEon Park <hermet@hermet.pe.kr> | 2015-08-22 16:09:25 +0900 |
commit | b5ae1b84f9c1f2d4e58c34d5688507595e446355 (patch) | |
tree | 2c0bc84db8f2cc961e3713b928805012209ad7a9 | |
parent | 12b4e371acf96be29dfe2527638d32eb5b1041d6 (diff) | |
download | efl-b5ae1b84f9c1f2d4e58c34d5688507595e446355.tar.gz |
ethum: fix compilation on Windows due to missing visibility setting.
-rw-r--r-- | src/lib/ethumb/Ethumb_Plugin.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/lib/ethumb/Ethumb_Plugin.h b/src/lib/ethumb/Ethumb_Plugin.h index 483399d212..3dd7c57a89 100644 --- a/src/lib/ethumb/Ethumb_Plugin.h +++ b/src/lib/ethumb/Ethumb_Plugin.h @@ -5,6 +5,36 @@ #include <Ecore_Evas.h> #include <Ethumb.h> +#ifdef EAPI +# undef EAPI +#endif + +#ifdef _WIN32 +# ifdef EFL_ETHUMB_BUILD +# ifdef DLL_EXPORT +# define EAPI __declspec(dllexport) +# else +# define EAPI +# endif /* ! DLL_EXPORT */ +# else +# define EAPI __declspec(dllimport) +# endif /* ! EFL_ETHUMB_BUILD */ +#else +# ifdef __GNUC__ +# if __GNUC__ >= 4 +# define EAPI __attribute__ ((visibility("default"))) +# else +# define EAPI +# endif +# else +# define EAPI +# endif +#endif /* ! _WIN32 */ + +#ifdef __cplusplus +extern "C" { +#endif + typedef struct _Ethumb_Plugin Ethumb_Plugin; struct _Ethumb_Plugin @@ -30,4 +60,11 @@ EAPI void ethumb_finished_callback_call(Ethumb *e, int result); EAPI Evas * ethumb_evas_get(const Ethumb *e); EAPI Ecore_Evas * ethumb_ecore_evas_get(const Ethumb *e); +#ifdef __cplusplus +} +#endif + +#undef EAPI +#define EAPI + #endif /* _ETHUMB_PLUGIN_H_ */ |