forked from enlightenment/efl
elm_priv.h - improve defines, EAPI EWAPI etc. because sub-includes need
this also makes it build for windows
This commit is contained in:
parent
bfeded7252
commit
b7eb3c5fe8
|
@ -27,29 +27,39 @@
|
|||
# ifdef EAPI
|
||||
# undef EAPI
|
||||
# endif
|
||||
# ifdef EWAPI
|
||||
# undef EWAPI
|
||||
# endif
|
||||
|
||||
# ifdef _WIN32
|
||||
# ifdef ELEMENTARY_BUILD
|
||||
# ifdef DLL_EXPORT
|
||||
# define EAPI __declspec(dllexport)
|
||||
# else
|
||||
# error "no DLL_EXPORT"
|
||||
# define EAPI
|
||||
# endif /* ! DLL_EXPORT */
|
||||
# else
|
||||
# define EAPI __declspec(dllimport)
|
||||
# endif /* ! EFL_EVAS_BUILD */
|
||||
# define EAPI_WEAK
|
||||
# else
|
||||
# ifdef __GNUC__
|
||||
# if __GNUC__ >= 4
|
||||
# define EAPI __attribute__ ((visibility("default")))
|
||||
# define EAPI_WEAK __attribute__ ((weak))
|
||||
# else
|
||||
# define EAPI
|
||||
# define EAPI_WEAK
|
||||
# endif
|
||||
# else
|
||||
# define EAPI
|
||||
# define EAPI_WEAK
|
||||
# endif
|
||||
# endif /* ! _WIN32 */
|
||||
|
||||
# define EWAPI EAPI EAPI_WEAK
|
||||
|
||||
# include "elm_widget.h"
|
||||
# include "elm_access.eo.h"
|
||||
# include "elm_code_private.h"
|
||||
|
@ -819,7 +829,4 @@ efl_ui_dir_is_horizontal(Efl_Ui_Dir dir, Eina_Bool def_val)
|
|||
}
|
||||
}
|
||||
|
||||
#undef EAPI
|
||||
#define EAPI
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue