diff options
author | Cedric BAIL <cedric@osg.samsung.com> | 2017-11-07 15:51:52 -0800 |
---|---|---|
committer | Cedric BAIL <cedric@osg.samsung.com> | 2017-11-07 16:08:39 -0800 |
commit | d171cf9639ff859f398ac919cb291f02231e6461 (patch) | |
tree | ec87bbb622c934bf661b80ee104744ed1442b7eb | |
parent | 4f70a295801b5fd7600d43b3aaa90241165c4ac5 (diff) | |
download | efl-d171cf9639ff859f398ac919cb291f02231e6461.tar.gz |
elementary: fix ELM_MAIN macro to properly expose symbol.
-rw-r--r-- | src/lib/elementary/Elementary.h | 10 |
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" |