summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCedric Bail <cedric.bail@samsung.com>2013-10-01 17:24:37 +0900
committerCedric Bail <cedric.bail@samsung.com>2013-10-01 17:24:37 +0900
commitfdea402d32810b3fd4384a177714d4f0c2e74a6a (patch)
treefb61a19966b5520c0565c237dbfe2dab68298588 /src
parent2e5a0215e613daf0ec010aed17dab1f36eb0ec3c (diff)
evas: try to set EAPI correctly.
Diffstat (limited to 'src')
-rw-r--r--src/lib/evas/Evas_Loader.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/lib/evas/Evas_Loader.h b/src/lib/evas/Evas_Loader.h
index 258f92ad39..70cc41aa7f 100644
--- a/src/lib/evas/Evas_Loader.h
+++ b/src/lib/evas/Evas_Loader.h
@@ -3,6 +3,36 @@
3 3
4#include "Eina.h" 4#include "Eina.h"
5 5
6#ifdef EAPI
7# undef EAPI
8#endif
9
10#ifdef _WIN32
11# ifdef EFL_EVAS_BUILD
12# ifdef DLL_EXPORT
13# define EAPI __declspec(dllexport)
14# else
15# define EAPI
16# endif /* ! DLL_EXPORT */
17# else
18# define EAPI __declspec(dllimport)
19# endif /* ! EFL_EVAS_BUILD */
20#else
21# ifdef __GNUC__
22# if __GNUC__ >= 4
23# define EAPI __attribute__ ((visibility("default")))
24# else
25# define EAPI
26# endif
27# else
28# define EAPI
29# endif
30#endif /* ! _WIN32 */
31
32#ifdef __cplusplus
33extern "C" {
34#endif
35
6/* the module api version */ 36/* the module api version */
7#define EVAS_MODULE_API_VERSION 2 37#define EVAS_MODULE_API_VERSION 2
8 38
@@ -164,4 +194,8 @@ EAPI Eina_Bool evas_module_unregister (const Evas_Module_Api *module, Evas_Mo
164 EINA_MODULE_INIT(evas_##Tn##_##Name##_init); \ 194 EINA_MODULE_INIT(evas_##Tn##_##Name##_init); \
165 EINA_MODULE_SHUTDOWN(evas_##Tn##_##Name##_shutdown); 195 EINA_MODULE_SHUTDOWN(evas_##Tn##_##Name##_shutdown);
166 196
197#ifdef __cplusplus
198}
199#endif
200
167#endif 201#endif