forked from enlightenment/efl
elementary: fix ELM_MAIN macro to properly expose symbol.
This commit is contained in:
parent
4f70a29580
commit
d171cf9639
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue