forked from enlightenment/efl
evas: try to set EAPI correctly.
This commit is contained in:
parent
2e5a0215e6
commit
fdea402d32
|
@ -3,6 +3,36 @@
|
|||
|
||||
#include "Eina.h"
|
||||
|
||||
#ifdef EAPI
|
||||
# undef EAPI
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
# ifdef EFL_EVAS_BUILD
|
||||
# ifdef DLL_EXPORT
|
||||
# define EAPI __declspec(dllexport)
|
||||
# else
|
||||
# define EAPI
|
||||
# endif /* ! DLL_EXPORT */
|
||||
# else
|
||||
# define EAPI __declspec(dllimport)
|
||||
# endif /* ! EFL_EVAS_BUILD */
|
||||
#else
|
||||
# ifdef __GNUC__
|
||||
# if __GNUC__ >= 4
|
||||
# define EAPI __attribute__ ((visibility("default")))
|
||||
# else
|
||||
# define EAPI
|
||||
# endif
|
||||
# else
|
||||
# define EAPI
|
||||
# endif
|
||||
#endif /* ! _WIN32 */
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* the module api version */
|
||||
#define EVAS_MODULE_API_VERSION 2
|
||||
|
||||
|
@ -164,4 +194,8 @@ EAPI Eina_Bool evas_module_unregister (const Evas_Module_Api *module, Evas_Mo
|
|||
EINA_MODULE_INIT(evas_##Tn##_##Name##_init); \
|
||||
EINA_MODULE_SHUTDOWN(evas_##Tn##_##Name##_shutdown);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue