summaryrefslogtreecommitdiff
path: root/src/lib/elocation
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/elocation
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/elocation')
-rw-r--r--src/lib/elocation/Elocation.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/lib/elocation/Elocation.h b/src/lib/elocation/Elocation.h
index 60002c0384..6ebec636fa 100644
--- a/src/lib/elocation/Elocation.h
+++ b/src/lib/elocation/Elocation.h
@@ -39,15 +39,15 @@
39#endif 39#endif
40 40
41#ifdef _WIN32 41#ifdef _WIN32
42# ifdef EFL_ELOCATION_BUILD 42# ifdef EFL_BUILD
43# ifdef DLL_EXPORT 43# ifdef DLL_EXPORT
44# define EAPI __declspec(dllexport) 44# define EAPI __declspec(dllexport)
45# else 45# else
46# define EAPI 46# define EAPI
47# endif /* ! DLL_EXPORT */ 47# endif
48# else 48# else
49# define EAPI __declspec(dllimport) 49# define EAPI __declspec(dllimport)
50# endif /* ! EFL_ELOCATION_BUILD */ 50# endif
51#else 51#else
52# ifdef __GNUC__ 52# ifdef __GNUC__
53# if __GNUC__ >= 4 53# if __GNUC__ >= 4
@@ -58,7 +58,7 @@
58# else 58# else
59# define EAPI 59# define EAPI
60# endif 60# endif
61#endif /* ! _WIN32 */ 61#endif
62 62
63#ifdef EFL_BETA_API_SUPPORT 63#ifdef EFL_BETA_API_SUPPORT
64 64
@@ -427,4 +427,7 @@ EAPI void elocation_shutdown(void);
427 427
428#endif /* BETA API */ 428#endif /* BETA API */
429 429
430#undef EAPI
431#define EAPI
432
430#endif 433#endif