summaryrefslogtreecommitdiff
path: root/src/lib/eet
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/eet
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/eet')
-rw-r--r--src/lib/eet/Eet.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/lib/eet/Eet.h b/src/lib/eet/Eet.h
index 60547bbd4a..8fc47f93cd 100644
--- a/src/lib/eet/Eet.h
+++ b/src/lib/eet/Eet.h
@@ -102,29 +102,29 @@
102 102
103#ifdef EAPI 103#ifdef EAPI
104# undef EAPI 104# undef EAPI
105#endif /* ifdef EAPI */ 105#endif
106 106
107#ifdef _WIN32 107#ifdef _WIN32
108# ifdef EFL_EET_BUILD 108# ifdef EFL_BUILD
109# ifdef DLL_EXPORT 109# ifdef DLL_EXPORT
110# define EAPI __declspec(dllexport) 110# define EAPI __declspec(dllexport)
111# else /* ifdef DLL_EXPORT */ 111# else
112# define EAPI 112# define EAPI
113# endif /* ! DLL_EXPORT */ 113# endif
114# else /* ifdef EFL_EET_BUILD */ 114# else
115# define EAPI __declspec(dllimport) 115# define EAPI __declspec(dllimport)
116# endif /* ! EFL_EET_BUILD */ 116# endif
117#else /* ifdef _WIN32 */ 117#else
118# ifdef __GNUC__ 118# ifdef __GNUC__
119# if __GNUC__ >= 4 119# if __GNUC__ >= 4
120# define EAPI __attribute__ ((visibility("default"))) 120# define EAPI __attribute__ ((visibility("default")))
121# else /* if __GNUC__ >= 4 */ 121# else
122# define EAPI 122# define EAPI
123# endif /* if __GNUC__ >= 4 */ 123# endif
124# else /* ifdef __GNUC__ */ 124# else
125# define EAPI 125# define EAPI
126# endif /* ifdef __GNUC__ */ 126# endif
127#endif /* ! _WIN32 */ 127#endif
128 128
129#ifdef __cplusplus 129#ifdef __cplusplus
130extern "C" { 130extern "C" {