summaryrefslogtreecommitdiff
path: root/src/lib/eina/eina_types.h
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2015-04-28 14:21:27 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-05-07 09:53:10 +0200
commit0dfb263a28691f70dd4fe385e2bdbe2b65cdbcf9 (patch)
treea0136224b256de6636f2a84b913707ea17eaee85 /src/lib/eina/eina_types.h
parent48dea342409fffcdd824b5d0ed00a180782b3459 (diff)
eina: remove the need to order the header correctly for Windows.
Diffstat (limited to '')
-rw-r--r--src/lib/eina/eina_types.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/lib/eina/eina_types.h b/src/lib/eina/eina_types.h
index 0c92ae414d..2e0c4d789f 100644
--- a/src/lib/eina/eina_types.h
+++ b/src/lib/eina/eina_types.h
@@ -61,6 +61,28 @@
61# endif 61# endif
62#endif 62#endif
63 63
64#ifdef _WIN32
65# ifdef DLL_EXPORT
66# define EXPORTAPI __declspec(dllexport)
67# else
68# define EXPORTAPI
69# endif /* ! DLL_EXPORT */
70#else
71# ifdef __GNUC__
72# if __GNUC__ >= 4
73# define EXPORTAPI __attribute__ ((visibility("default")))
74# else
75# define EXPORTAPI
76# endif
77# else
78/**
79 * @def EAPI
80 * @brief Used to export functions(by changing visibility).
81 */
82# define EXPORTAPI
83# endif
84#endif
85
64#include "eina_config.h" 86#include "eina_config.h"
65 87
66#ifdef EINA_UNUSED 88#ifdef EINA_UNUSED