summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2015-04-28 14:24:11 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-05-07 09:53:10 +0200
commit71b7fc982a2e23bcb41bf6d227bceeba1f5596ec (patch)
tree4a6b8a01e76fec5797ff183ea556c229cfdc520d /src/lib
parent7b52ecc9b9ae2f37d8771060e12f1d1f1e165265 (diff)
evas: remove the need to order the header correctly for Windows.
Diffstat (limited to '')
-rw-r--r--src/lib/evas/Evas.h4
-rw-r--r--src/lib/evas/Evas_GL.h29
-rw-r--r--src/lib/evas/Evas_Loader.h3
-rw-r--r--src/lib/evas/cserve2/evas_cs2_private.h26
-rw-r--r--src/lib/evas/include/evas_common_private.h29
-rw-r--r--src/lib/evas/include/evas_filter.h30
-rw-r--r--src/lib/evas/include/evas_private.h26
7 files changed, 146 insertions, 1 deletions
diff --git a/src/lib/evas/Evas.h b/src/lib/evas/Evas.h
index 71d91eab8b..9abcfd3376 100644
--- a/src/lib/evas/Evas.h
+++ b/src/lib/evas/Evas.h
@@ -292,8 +292,12 @@ extern "C" {
292#ifdef EFL_EO_API_SUPPORT 292#ifdef EFL_EO_API_SUPPORT
293#include <Evas_Eo.h> 293#include <Evas_Eo.h>
294#endif 294#endif
295
295#ifdef __cplusplus 296#ifdef __cplusplus
296} 297}
297#endif 298#endif
298 299
300#undef EAPI
301#define EAPI
302
299#endif 303#endif
diff --git a/src/lib/evas/Evas_GL.h b/src/lib/evas/Evas_GL.h
index 5a7efef220..255ccfccec 100644
--- a/src/lib/evas/Evas_GL.h
+++ b/src/lib/evas/Evas_GL.h
@@ -4,6 +4,32 @@
4#include <Evas.h> 4#include <Evas.h>
5//#include <GL/gl.h> 5//#include <GL/gl.h>
6 6
7#ifdef EAPI
8# undef EAPI
9#endif
10
11#ifdef _WIN32
12# ifdef EFL_EVAS_BUILD
13# ifdef DLL_EXPORT
14# define EAPI __declspec(dllexport)
15# else
16# define EAPI
17# endif /* ! DLL_EXPORT */
18# else
19# define EAPI __declspec(dllimport)
20# endif /* ! EFL_EVAS_BUILD */
21#else
22# ifdef __GNUC__
23# if __GNUC__ >= 4
24# define EAPI __attribute__ ((visibility("default")))
25# else
26# define EAPI
27# endif
28# else
29# define EAPI
30# endif
31#endif /* ! _WIN32 */
32
7#ifdef __cplusplus 33#ifdef __cplusplus
8extern "C" { 34extern "C" {
9#endif 35#endif
@@ -4616,6 +4642,9 @@ EvasGLImage *img = glapi->evasglCreateImageForContext
4616} 4642}
4617#endif 4643#endif
4618 4644
4645#undef EAPI
4646#define EAPI
4647
4619#endif 4648#endif
4620/** 4649/**
4621 * @} 4650 * @}
diff --git a/src/lib/evas/Evas_Loader.h b/src/lib/evas/Evas_Loader.h
index ab2fd134c5..58e760c853 100644
--- a/src/lib/evas/Evas_Loader.h
+++ b/src/lib/evas/Evas_Loader.h
@@ -215,4 +215,7 @@ EAPI Eina_Bool evas_module_unregister (const Evas_Module_Api *module, Evas_Mo
215} 215}
216#endif 216#endif
217 217
218#undef EAPI
219#define EAPI
220
218#endif 221#endif
diff --git a/src/lib/evas/cserve2/evas_cs2_private.h b/src/lib/evas/cserve2/evas_cs2_private.h
index 2d4aeb435b..9412a7d633 100644
--- a/src/lib/evas/cserve2/evas_cs2_private.h
+++ b/src/lib/evas/cserve2/evas_cs2_private.h
@@ -4,6 +4,32 @@
4#include "evas_common_private.h" 4#include "evas_common_private.h"
5#include "evas_cs2.h" 5#include "evas_cs2.h"
6 6
7#ifdef EAPI
8# undef EAPI
9#endif
10
11#ifdef _WIN32
12# ifdef EFL_EVAS_BUILD
13# ifdef DLL_EXPORT
14# define EAPI __declspec(dllexport)
15# else
16# define EAPI
17# endif /* ! DLL_EXPORT */
18# else
19# define EAPI __declspec(dllimport)
20# endif /* ! EFL_EVAS_BUILD */
21#else
22# ifdef __GNUC__
23# if __GNUC__ >= 4
24# define EAPI __attribute__ ((visibility("default")))
25# else
26# define EAPI
27# endif
28# else
29# define EAPI
30# endif
31#endif /* ! _WIN32 */
32
7#define SHARED_BUFFER_PATH_MAX 64 33#define SHARED_BUFFER_PATH_MAX 64
8typedef struct _Data_Entry Data_Entry; 34typedef struct _Data_Entry Data_Entry;
9typedef struct _Font_Entry Font_Entry; 35typedef struct _Font_Entry Font_Entry;
diff --git a/src/lib/evas/include/evas_common_private.h b/src/lib/evas/include/evas_common_private.h
index 6b4cf5e623..17a08bdd20 100644
--- a/src/lib/evas/include/evas_common_private.h
+++ b/src/lib/evas/include/evas_common_private.h
@@ -57,6 +57,32 @@
57#include "Evas.h" 57#include "Evas.h"
58//#include "Evas_GL.h" 58//#include "Evas_GL.h"
59 59
60#ifdef EAPI
61# undef EAPI
62#endif
63
64#ifdef _WIN32
65# ifdef EFL_EVAS_BUILD
66# ifdef DLL_EXPORT
67# define EAPI __declspec(dllexport)
68# else
69# define EAPI
70# endif /* ! DLL_EXPORT */
71# else
72# define EAPI __declspec(dllimport)
73# endif /* ! EFL_EVAS_BUILD */
74#else
75# ifdef __GNUC__
76# if __GNUC__ >= 4
77# define EAPI __attribute__ ((visibility("default")))
78# else
79# define EAPI
80# endif
81# else
82# define EAPI
83# endif
84#endif /* ! _WIN32 */
85
60#ifndef HAVE_LROUND 86#ifndef HAVE_LROUND
61/* right now i dont care about rendering bugs on platforms without lround 87/* right now i dont care about rendering bugs on platforms without lround
62 (e.g. windows/vc++... yay!) 88 (e.g. windows/vc++... yay!)
@@ -1317,6 +1343,9 @@ void evas_common_rgba_image_scalecache_item_unref(Image_Entry *ie);
1317 1343
1318/*****************************************************************************/ 1344/*****************************************************************************/
1319 1345
1346#undef EAPI
1347#define EAPI
1348
1320#ifdef __cplusplus 1349#ifdef __cplusplus
1321} 1350}
1322#endif 1351#endif
diff --git a/src/lib/evas/include/evas_filter.h b/src/lib/evas/include/evas_filter.h
index 70b45bfdb1..22804413c5 100644
--- a/src/lib/evas/include/evas_filter.h
+++ b/src/lib/evas/include/evas_filter.h
@@ -4,6 +4,32 @@
4#include "evas_common_private.h" 4#include "evas_common_private.h"
5#include "evas_private.h" 5#include "evas_private.h"
6 6
7#ifdef EAPI
8# undef EAPI
9#endif
10
11#ifdef _WIN32
12# ifdef EFL_EVAS_BUILD
13# ifdef DLL_EXPORT
14# define EAPI __declspec(dllexport)
15# else
16# define EAPI
17# endif /* ! DLL_EXPORT */
18# else
19# define EAPI __declspec(dllimport)
20# endif /* ! EFL_EVAS_BUILD */
21#else
22# ifdef __GNUC__
23# if __GNUC__ >= 4
24# define EAPI __attribute__ ((visibility("default")))
25# else
26# define EAPI
27# endif
28# else
29# define EAPI
30# endif
31#endif /* ! _WIN32 */
32
7typedef struct _Evas_Filter_Context Evas_Filter_Context; 33typedef struct _Evas_Filter_Context Evas_Filter_Context;
8typedef struct _Evas_Filter_Command Evas_Filter_Command; 34typedef struct _Evas_Filter_Command Evas_Filter_Command;
9typedef struct _Evas_Filter_Instruction Evas_Filter_Instruction; 35typedef struct _Evas_Filter_Instruction Evas_Filter_Instruction;
@@ -249,5 +275,7 @@ struct _Evas_Filter_Proxy_Binding
249 Eina_Stringshare *name; 275 Eina_Stringshare *name;
250}; 276};
251 277
252#endif 278#undef EAPI
279#define EAPI
253 280
281#endif
diff --git a/src/lib/evas/include/evas_private.h b/src/lib/evas/include/evas_private.h
index 427a71de0d..7d9303c802 100644
--- a/src/lib/evas/include/evas_private.h
+++ b/src/lib/evas/include/evas_private.h
@@ -15,6 +15,32 @@
15 15
16#include "evas_3d_utils.h" 16#include "evas_3d_utils.h"
17 17
18#ifdef EAPI
19# undef EAPI
20#endif
21
22#ifdef _WIN32
23# ifdef EFL_EVAS_BUILD
24# ifdef DLL_EXPORT
25# define EAPI __declspec(dllexport)
26# else
27# define EAPI
28# endif /* ! DLL_EXPORT */
29# else
30# define EAPI __declspec(dllimport)
31# endif /* ! EFL_EVAS_BUILD */
32#else
33# ifdef __GNUC__
34# if __GNUC__ >= 4
35# define EAPI __attribute__ ((visibility("default")))
36# else
37# define EAPI
38# endif
39# else
40# define EAPI
41# endif
42#endif /* ! _WIN32 */
43
18#define RENDER_METHOD_INVALID 0x00000000 44#define RENDER_METHOD_INVALID 0x00000000
19 45
20//#define REND_DBG 1 46//#define REND_DBG 1