summaryrefslogtreecommitdiff
path: root/src/lib/elementary
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2017-11-07 15:51:52 -0800
committerCedric BAIL <cedric@osg.samsung.com>2017-11-07 16:08:39 -0800
commitd171cf9639ff859f398ac919cb291f02231e6461 (patch)
treeec87bbb622c934bf661b80ee104744ed1442b7eb /src/lib/elementary
parent4f70a295801b5fd7600d43b3aaa90241165c4ac5 (diff)
elementary: fix ELM_MAIN macro to properly expose symbol.
Diffstat (limited to 'src/lib/elementary')
-rw-r--r--src/lib/elementary/Elementary.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/lib/elementary/Elementary.h b/src/lib/elementary/Elementary.h
index 9cfd3adaeb..3913084bf3 100644
--- a/src/lib/elementary/Elementary.h
+++ b/src/lib/elementary/Elementary.h
@@ -85,6 +85,7 @@
85#endif 85#endif
86 86
87#ifdef _WIN32 87#ifdef _WIN32
88# define EAPI_MAIN
88# ifdef ELEMENTARY_BUILD 89# ifdef ELEMENTARY_BUILD
89# ifdef DLL_EXPORT 90# ifdef DLL_EXPORT
90# define EAPI __declspec(dllexport) 91# define EAPI __declspec(dllexport)
@@ -98,20 +99,17 @@
98# ifdef __GNUC__ 99# ifdef __GNUC__
99# if __GNUC__ >= 4 100# if __GNUC__ >= 4
100# define EAPI __attribute__ ((visibility("default"))) 101# define EAPI __attribute__ ((visibility("default")))
102# define EAPI_MAIN __attribute__ ((visibility("default")))
101# else 103# else
102# define EAPI 104# define EAPI
105# define EAPI_MAIN
103# endif 106# endif
104# else 107# else
105# define EAPI 108# define EAPI
109# define EAPI_MAIN
106# endif 110# endif
107#endif /* ! _WIN32 */ 111#endif /* ! _WIN32 */
108 112
109#ifdef _WIN32
110# define EAPI_MAIN
111#else
112# define EAPI_MAIN EAPI
113#endif
114
115/* allow usage from c++ */ 113/* allow usage from c++ */
116#ifdef __cplusplus 114#ifdef __cplusplus
117extern "C" 115extern "C"