for Windows (XP and CE).
* include Eina.h before EAPI so that this latter is defined correctly for Evas
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@39599
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
#ifndef _EVAS_H
#define _EVAS_H
+#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 */
+
+
/**
* @file
* @brief These routines are used for Evas library interaction.
* @todo finish api documentation
*/
-#include <Eina.h>
#include <Evas_Data.h>
typedef enum _Evas_Callback_Type