summaryrefslogtreecommitdiff
path: root/src/lib/eio/eio_model.h
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2015-04-28 15:12:42 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-05-07 09:53:10 +0200
commit84ddee331baa446bfa01fd21820b35d49cdbe68f (patch)
treef73faae4540e46632387f40bf59de0b04719ab1f /src/lib/eio/eio_model.h
parent0b4a911450343896f8c9c7452e6bb6971acf7780 (diff)
eio: remove the need to order the header correctly for Windows.
Diffstat (limited to '')
-rw-r--r--src/lib/eio/eio_model.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/lib/eio/eio_model.h b/src/lib/eio/eio_model.h
index 1c46d77c45..e28870bf02 100644
--- a/src/lib/eio/eio_model.h
+++ b/src/lib/eio/eio_model.h
@@ -33,6 +33,32 @@
33#include <Efl.h> 33#include <Efl.h>
34#include <Eio.h> 34#include <Eio.h>
35 35
36#ifdef EAPI
37# undef EAPI
38#endif
39
40#ifdef _WIN32
41# ifdef EFL_EIO_BUILD
42# ifdef DLL_EXPORT
43# define EAPI __declspec(dllexport)
44# else
45# define EAPI
46# endif /* ! DLL_EXPORT */
47# else
48# define EAPI __declspec(dllimport)
49# endif /* ! EFL_EIO_BUILD */
50#else
51# ifdef __GNUC__
52# if __GNUC__ >= 4
53# define EAPI __attribute__ ((visibility("default")))
54# else
55# define EAPI
56# endif
57# else
58# define EAPI
59# endif
60#endif /* ! _WIN32 */
61
36#ifdef __cplusplus 62#ifdef __cplusplus
37extern "C" { 63extern "C" {
38#endif 64#endif
@@ -42,4 +68,8 @@ extern "C" {
42#ifdef __cplusplus 68#ifdef __cplusplus
43} 69}
44#endif 70#endif
71
72#undef EAPI
73#define EAPI
74
45#endif //_EMODEL_EIO_H 75#endif //_EMODEL_EIO_H