summaryrefslogtreecommitdiff
path: root/src/lib/eina/eina_internal.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/eina/eina_internal.h42
1 files changed, 41 insertions, 1 deletions
diff --git a/src/lib/eina/eina_internal.h b/src/lib/eina/eina_internal.h
index 391ad944f3..acf55fe347 100644
--- a/src/lib/eina/eina_internal.h
+++ b/src/lib/eina/eina_internal.h
@@ -1,5 +1,5 @@
1#ifndef EINA_INTERNAL_H 1#ifndef EINA_INTERNAL_H
2#define EINA_INTERNAL_H 2# define EINA_INTERNAL_H
3 3
4/* 4/*
5 * eina_internal.h 5 * eina_internal.h
@@ -8,9 +8,49 @@
8 * not stable API. 8 * not stable API.
9 */ 9 */
10 10
11#ifdef EAPI
12# undef EAPI
13#endif
14
15#ifdef _WIN32
16# ifdef EFL_EINA_BUILD
17# ifdef DLL_EXPORT
18# define EAPI __declspec(dllexport)
19# else
20# define EAPI
21# endif /* ! DLL_EXPORT */
22# else
23# define EAPI __declspec(dllimport)
24# endif /* ! EFL_EINA_BUILD */
25# define EAPI_WEAK
26#else
27# ifdef __GNUC__
28# if __GNUC__ >= 4
29# define EAPI __attribute__ ((visibility("default")))
30# define EAPI_WEAK __attribute__ ((weak))
31# else
32# define EAPI
33# define EAPI_WEAK
34# endif
35# else
36/**
37 * @def EAPI
38 * @brief Used to export functions (by changing visibility).
39 */
40# define EAPI
41# endif
42#endif
43
11/** 44/**
12 * @brief Cancels all pending promise/futures. 45 * @brief Cancels all pending promise/futures.
46 *
47 * Internal function. Do not use.
48 *
49 * @internal
13 */ 50 */
14EAPI void __eina_promise_cancel_all(void); 51EAPI void __eina_promise_cancel_all(void);
15 52
53#undef EAPI
54#define EAPI
55
16#endif 56#endif