From 3a774f6971d854c5d567f53d5ce9164e19d04531 Mon Sep 17 00:00:00 2001 From: Vincent Torri Date: Fri, 20 Mar 2009 06:43:44 +0000 Subject: [PATCH] * Re-add EAPI. These macros must be defined specifically for each EFL for Windows (XP and CE). * include Eina.h before EAPI so that this latter is defined correctly for Evas SVN revision: 39599 --- legacy/evas/src/lib/Evas.h | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/legacy/evas/src/lib/Evas.h b/legacy/evas/src/lib/Evas.h index 19499a9610..94bf76796a 100644 --- a/legacy/evas/src/lib/Evas.h +++ b/legacy/evas/src/lib/Evas.h @@ -1,6 +1,35 @@ #ifndef _EVAS_H #define _EVAS_H +#include + +#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 */ + + /** * @file * @brief These routines are used for Evas library interaction. @@ -10,7 +39,6 @@ * @todo finish api documentation */ -#include #include typedef enum _Evas_Callback_Type