summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/software_generic/evas_ector_software.h
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-08-16 14:06:51 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-08-16 14:06:51 +0900
commitb3722c05f903f417467eb8d3559b633ce868fd8c (patch)
tree75aa7f22e0ec08012e00fcfb78b1512c48f35107 /src/modules/evas/engines/software_generic/evas_ector_software.h
parent4cd1257b1be6e6c76d9cb86cb647fb3bfbc91765 (diff)
evas: Fix crash with filters
Since the EO APIs are defined as weak symbols, invalid definitions of EAPI lead to runtime crashes on non-public APIs. This is a fix following a series of changes wrt. EAPI definitions.
Diffstat (limited to 'src/modules/evas/engines/software_generic/evas_ector_software.h')
-rw-r--r--src/modules/evas/engines/software_generic/evas_ector_software.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/modules/evas/engines/software_generic/evas_ector_software.h b/src/modules/evas/engines/software_generic/evas_ector_software.h
new file mode 100644
index 0000000000..5d10143cc4
--- /dev/null
+++ b/src/modules/evas/engines/software_generic/evas_ector_software.h
@@ -0,0 +1,35 @@
1#ifndef EVAS_ECTOR_GL_H
2#define EVAS_ECTOR_GL_H
3
4#undef EAPI
5
6#ifdef _WIN32
7# ifdef EFL_EVAS_BUILD
8# ifdef DLL_EXPORT
9# define EAPI __declspec(dllexport)
10# else
11# define EAPI
12# endif /* ! DLL_EXPORT */
13# else
14# define EAPI __declspec(dllimport)
15# endif /* ! EFL_EVAS_BUILD */
16#else
17# ifdef __GNUC__
18# if __GNUC__ >= 4
19# define EAPI __attribute__ ((visibility("default")))
20# else
21# define EAPI
22# endif
23# else
24# define EAPI
25# endif
26#endif /* ! _WIN32 */
27
28#include "evas_ector_buffer.eo.h"
29#include "evas_ector_software_buffer.eo.h"
30
31#undef EAPI
32#define EAPI
33
34#endif /* ! EVAS_ECTOR_GL_H */
35