summaryrefslogtreecommitdiff
path: root/src/lib/ecore_buffer
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/ecore_buffer
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/ecore_buffer')
-rw-r--r--src/lib/ecore_buffer/Ecore_Buffer.h11
-rw-r--r--src/lib/ecore_buffer/Ecore_Buffer_Queue.h11
2 files changed, 14 insertions, 8 deletions
diff --git a/src/lib/ecore_buffer/Ecore_Buffer.h b/src/lib/ecore_buffer/Ecore_Buffer.h
index c8400e619a..4d5c49d93e 100644
--- a/src/lib/ecore_buffer/Ecore_Buffer.h
+++ b/src/lib/ecore_buffer/Ecore_Buffer.h
@@ -6,15 +6,15 @@
6#endif 6#endif
7 7
8#ifdef _WIN32 8#ifdef _WIN32
9# ifdef EFL_ECORE_BUFFER_BUILD 9# ifdef EFL_BUILD
10# ifdef DLL_EXPORT 10# ifdef DLL_EXPORT
11# define EAPI __declspec(dllexport) 11# define EAPI __declspec(dllexport)
12# else 12# else
13# define EAPI 13# define EAPI
14# endif /* ! DLL_EXPORT */ 14# endif
15# else 15# else
16# define EAPI __declspec(dllimport) 16# define EAPI __declspec(dllimport)
17# endif /* ! EFL_ECORE_BUFFER_BUILD */ 17# endif
18#else 18#else
19# ifdef __GNUC__ 19# ifdef __GNUC__
20# if __GNUC__ >= 4 20# if __GNUC__ >= 4
@@ -25,7 +25,7 @@
25# else 25# else
26# define EAPI 26# define EAPI
27# endif 27# endif
28#endif /* ! _WIN32 */ 28#endif
29 29
30/** 30/**
31 * @defgroup Ecore_Buffer_Group Ecore_Buffer - Graphics buffer functions 31 * @defgroup Ecore_Buffer_Group Ecore_Buffer - Graphics buffer functions
@@ -626,4 +626,7 @@ EAPI unsigned int ecore_buffer_flags_get(Ecore_Buffer *buf);
626} 626}
627#endif 627#endif
628 628
629#undef EAPI
630#define EAPI
631
629#endif 632#endif
diff --git a/src/lib/ecore_buffer/Ecore_Buffer_Queue.h b/src/lib/ecore_buffer/Ecore_Buffer_Queue.h
index 5c82ac318a..11abf6a57b 100644
--- a/src/lib/ecore_buffer/Ecore_Buffer_Queue.h
+++ b/src/lib/ecore_buffer/Ecore_Buffer_Queue.h
@@ -6,15 +6,15 @@
6#endif 6#endif
7 7
8#ifdef _WIN32 8#ifdef _WIN32
9# ifdef EFL_ECORE_BUFFER_BUILD 9# ifdef EFL_BUILD
10# ifdef DLL_EXPORT 10# ifdef DLL_EXPORT
11# define EAPI __declspec(dllexport) 11# define EAPI __declspec(dllexport)
12# else 12# else
13# define EAPI 13# define EAPI
14# endif /* ! DLL_EXPORT */ 14# endif
15# else 15# else
16# define EAPI __declspec(dllimport) 16# define EAPI __declspec(dllimport)
17# endif /* ! EFL_ECORE_BUFFER_BUILD */ 17# endif
18#else 18#else
19# ifdef __GNUC__ 19# ifdef __GNUC__
20# if __GNUC__ >= 4 20# if __GNUC__ >= 4
@@ -25,7 +25,7 @@
25# else 25# else
26# define EAPI 26# define EAPI
27# endif 27# endif
28#endif /* ! _WIN32 */ 28#endif
29 29
30#ifdef __cplusplus 30#ifdef __cplusplus
31extern "C" { 31extern "C" {
@@ -448,4 +448,7 @@ EAPI void ecore_buffer_provider_buffer_released_cb_set(Ecor
448} 448}
449#endif 449#endif
450 450
451#undef EAPI
452#define EAPI
453
451#endif /* _ECORE_BUFFER_QUEUE_H_ */ 454#endif /* _ECORE_BUFFER_QUEUE_H_ */