summaryrefslogtreecommitdiff
path: root/src/lib/elput
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2018-01-18 18:04:03 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2018-01-18 18:04:03 +0900
commitf5b01ac5ce3d86c3bcd89c4882a77b1c126ca789 (patch)
treecb39aad3598224652d3117f64328d596678ffdc6 /src/lib/elput
parent8a1655a15cb3863165a7dddaa6021953ce9c18ab (diff)
all: Simplify definition of EAPI
This will help in the transition from Autotools to Meson. This has been tested on Windows for which EFL_XXX_BUILD were first introduced.
Diffstat (limited to 'src/lib/elput')
-rw-r--r--src/lib/elput/Elput.h24
1 files changed, 6 insertions, 18 deletions
diff --git a/src/lib/elput/Elput.h b/src/lib/elput/Elput.h
index db62c52d10..2a63d561e3 100644
--- a/src/lib/elput/Elput.h
+++ b/src/lib/elput/Elput.h
@@ -5,27 +5,15 @@
5# undef EAPI 5# undef EAPI
6# endif 6# endif
7 7
8# ifdef _WIN32 8# ifdef __GNUC__
9# ifdef EFL_ELPUT_BUILD 9# if __GNUC__ >= 4
10# ifdef DLL_EXPORT 10# define EAPI __attribute__ ((visibility("default")))
11# define EAPI __declspec(dllexport)
12# else
13# define EAPI
14# endif /* ! DLL_EXPORT */
15# else
16# define EAPI __declspec(dllimport)
17# endif /* ! EFL_ELPUT_BUILD */
18# else
19# ifdef __GNUC__
20# if __GNUC__ >= 4
21# define EAPI __attribute__ ((visibility("default")))
22# else
23# define EAPI
24# endif
25# else 11# else
26# define EAPI 12# define EAPI
27# endif 13# endif
28# endif /* ! _WIN32 */ 14# else
15# define EAPI
16# endif
29 17
30# ifdef EFL_BETA_API_SUPPORT 18# ifdef EFL_BETA_API_SUPPORT
31 19