all: Simplify definition of EAPI
This will help in the transition from Autotools to Meson. This has been tested on Windows for which EFL_XXX_BUILD were first introduced.
This commit is contained in:
parent
734359f7a6
commit
3f7b28f9c8
|
@ -10,15 +10,15 @@
|
||||||
#define EOAPI EAPI EAPI_WEAK
|
#define EOAPI EAPI EAPI_WEAK
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
# ifdef EFL_EO_BUILD
|
# ifdef EFL_BUILD
|
||||||
# ifdef DLL_EXPORT
|
# ifdef DLL_EXPORT
|
||||||
# define EAPI __declspec(dllexport)
|
# define EAPI __declspec(dllexport)
|
||||||
# else
|
# else
|
||||||
# define EAPI
|
# define EAPI
|
||||||
# endif /* ! DLL_EXPORT */
|
# endif
|
||||||
# else
|
# else
|
||||||
# define EAPI __declspec(dllimport)
|
# define EAPI __declspec(dllimport)
|
||||||
# endif /* ! EFL_EO_BUILD */
|
# endif
|
||||||
#else
|
#else
|
||||||
# ifdef __GNUC__
|
# ifdef __GNUC__
|
||||||
# if __GNUC__ >= 4
|
# if __GNUC__ >= 4
|
||||||
|
@ -29,7 +29,7 @@
|
||||||
# else
|
# else
|
||||||
# define EAPI
|
# define EAPI
|
||||||
# endif
|
# endif
|
||||||
#endif /* ! _WIN32 */
|
#endif
|
||||||
|
|
||||||
#include "example_numberwrapper.eo.h"
|
#include "example_numberwrapper.eo.h"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue