aboutsummaryrefslogtreecommitdiffstats
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
parentelementary: add debugging information to quicklaunch binary. (diff)
downloadefl-d171cf9639ff859f398ac919cb291f02231e6461.tar.gz
elementary: fix ELM_MAIN macro to properly expose symbol.
-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 @@
#endif
#ifdef _WIN32
+# define EAPI_MAIN
# ifdef ELEMENTARY_BUILD
# ifdef DLL_EXPORT
# define EAPI __declspec(dllexport)
@@ -98,20 +99,17 @@
# ifdef __GNUC__
# if __GNUC__ >= 4
# define EAPI __attribute__ ((visibility("default")))
+# define EAPI_MAIN __attribute__ ((visibility("default")))
# else
# define EAPI
+# define EAPI_MAIN
# endif
# else
# define EAPI
+# define EAPI_MAIN
# endif
#endif /* ! _WIN32 */
-#ifdef _WIN32
-# define EAPI_MAIN
-#else
-# define EAPI_MAIN EAPI
-#endif
-
/* allow usage from c++ */
#ifdef __cplusplus
extern "C"