summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Michael <cpmichael@osg.samsung.com>2016-04-15 08:13:47 -0400
committerChris Michael <cpmichael@osg.samsung.com>2016-04-15 08:13:47 -0400
commit22e3ea20ee4feecbc794d4bc45570a9e6982c3ff (patch)
tree659130a4109787aceae7e5064f5c5fdf592b179d
parent726c6171bf8606b7c1679ae13c5720afe53c630b (diff)
elput: Adjust EAPI for windows build
Small patch to fix definition of EAPI on Windows. Thanks to vtorri for reporting. Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
-rw-r--r--src/lib/elput/Elput.h26
1 files changed, 15 insertions, 11 deletions
diff --git a/src/lib/elput/Elput.h b/src/lib/elput/Elput.h
index a1ac7213b6..d629dd4ca2 100644
--- a/src/lib/elput/Elput.h
+++ b/src/lib/elput/Elput.h
@@ -5,23 +5,27 @@
5# undef EAPI 5# undef EAPI
6# endif 6# endif
7 7
8# ifdef _MSC_VER 8# ifdef _WIN32
9# ifdef BUILDING_DLL 9# ifdef EFL_ELPUT_BUILD
10# define EAPI __declspec(dllexport) 10# ifdef DLL_EXPORT
11# else // ifdef BUILDING_DLL 11# define EAPI __declspec(dllexport)
12# else
13# define EAPI
14# endif /* ! DLL_EXPORT */
15# else
12# define EAPI __declspec(dllimport) 16# define EAPI __declspec(dllimport)
13# endif // ifdef BUILDING_DLL 17# endif /* ! EFL_ELPUT_BUILD */
14# else // ifdef _MSC_VER 18# else
15# ifdef __GNUC__ 19# ifdef __GNUC__
16# if __GNUC__ >= 4 20# if __GNUC__ >= 4
17# define EAPI __attribute__ ((visibility("default"))) 21# define EAPI __attribute__ ((visibility("default")))
18# else // if __GNUC__ >= 4 22# else
19# define EAPI 23# define EAPI
20# endif // if __GNUC__ >= 4 24# endif
21# else // ifdef __GNUC__ 25# else
22# define EAPI 26# define EAPI
23# endif // ifdef __GNUC__ 27# endif
24# endif // ifdef _MSC_VER 28# endif /* ! _WIN32 */
25 29
26# ifdef EFL_BETA_API_SUPPORT 30# ifdef EFL_BETA_API_SUPPORT
27 31