summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2015-08-22 16:09:25 +0900
committerChunEon Park <hermet@hermet.pe.kr>2015-08-22 16:09:25 +0900
commitb5ae1b84f9c1f2d4e58c34d5688507595e446355 (patch)
tree2c0bc84db8f2cc961e3713b928805012209ad7a9
parent12b4e371acf96be29dfe2527638d32eb5b1041d6 (diff)
ethum: fix compilation on Windows due to missing visibility setting.
-rw-r--r--src/lib/ethumb/Ethumb_Plugin.h37
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 @@
5#include <Ecore_Evas.h> 5#include <Ecore_Evas.h>
6#include <Ethumb.h> 6#include <Ethumb.h>
7 7
8#ifdef EAPI
9# undef EAPI
10#endif
11
12#ifdef _WIN32
13# ifdef EFL_ETHUMB_BUILD
14# ifdef DLL_EXPORT
15# define EAPI __declspec(dllexport)
16# else
17# define EAPI
18# endif /* ! DLL_EXPORT */
19# else
20# define EAPI __declspec(dllimport)
21# endif /* ! EFL_ETHUMB_BUILD */
22#else
23# ifdef __GNUC__
24# if __GNUC__ >= 4
25# define EAPI __attribute__ ((visibility("default")))
26# else
27# define EAPI
28# endif
29# else
30# define EAPI
31# endif
32#endif /* ! _WIN32 */
33
34#ifdef __cplusplus
35extern "C" {
36#endif
37
8typedef struct _Ethumb_Plugin Ethumb_Plugin; 38typedef struct _Ethumb_Plugin Ethumb_Plugin;
9 39
10struct _Ethumb_Plugin 40struct _Ethumb_Plugin
@@ -30,4 +60,11 @@ EAPI void ethumb_finished_callback_call(Ethumb *e, int result);
30EAPI Evas * ethumb_evas_get(const Ethumb *e); 60EAPI Evas * ethumb_evas_get(const Ethumb *e);
31EAPI Ecore_Evas * ethumb_ecore_evas_get(const Ethumb *e); 61EAPI Ecore_Evas * ethumb_ecore_evas_get(const Ethumb *e);
32 62
63#ifdef __cplusplus
64}
65#endif
66
67#undef EAPI
68#define EAPI
69
33#endif /* _ETHUMB_PLUGIN_H_ */ 70#endif /* _ETHUMB_PLUGIN_H_ */