summaryrefslogtreecommitdiff
path: root/src/lib/eolian/eolian_api.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/eolian/eolian_api.h')
-rw-r--r--src/lib/eolian/eolian_api.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/lib/eolian/eolian_api.h b/src/lib/eolian/eolian_api.h
new file mode 100644
index 0000000000..e2cfa7a524
--- /dev/null
+++ b/src/lib/eolian/eolian_api.h
@@ -0,0 +1,34 @@
1#ifndef _EFL_EOLIAN_API_H
2#define _EFL_EOLIAN_API_H
3
4#ifdef EOLIAN_API
5#error EOLIAN_API should not be already defined
6#endif
7
8#ifdef _WIN32
9# ifndef EOLIAN_STATIC
10# ifdef EOLIAN_BUILD
11# define EOLIAN_API __declspec(dllexport)
12# else
13# define EOLIAN_API __declspec(dllimport)
14# endif
15# else
16# define EOLIAN_API
17# endif
18# define EOLIAN_API_WEAK
19#else
20# ifdef __GNUC__
21# if __GNUC__ >= 4
22# define EOLIAN_API __attribute__ ((visibility("default")))
23# define EOLIAN_API_WEAK __attribute__ ((weak))
24# else
25# define EOLIAN_API
26# define EOLIAN_API_WEAK
27# endif
28# else
29# define EOLIAN_API
30# define EOLIAN_API_WEAK
31# endif
32#endif
33
34#endif