summaryrefslogtreecommitdiff
path: root/src/lib/efreet
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2015-04-28 15:12:03 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-05-07 09:53:10 +0200
commit0b4a911450343896f8c9c7452e6bb6971acf7780 (patch)
treed1cea9f3d59ec0bf9187253c764388bf8c4f6e80 /src/lib/efreet
parent04d290c35022b9add5ef8de9cd22fdf7dd69d930 (diff)
efreet: remove the need to order the header correctly for Windows.
Diffstat (limited to 'src/lib/efreet')
-rw-r--r--src/lib/efreet/Efreet.h3
-rw-r--r--src/lib/efreet/efreet_cache_private.h29
-rw-r--r--src/lib/efreet/efreet_private.h29
3 files changed, 61 insertions, 0 deletions
diff --git a/src/lib/efreet/Efreet.h b/src/lib/efreet/Efreet.h
index 419e5ff531..e83784da1d 100644
--- a/src/lib/efreet/Efreet.h
+++ b/src/lib/efreet/Efreet.h
@@ -149,6 +149,9 @@ EAPI int efreet_shutdown(void);
149 */ 149 */
150EAPI void efreet_lang_reset(void); 150EAPI void efreet_lang_reset(void);
151 151
152#undef EAPI
153#define EAPI
154
152#ifdef __cplusplus 155#ifdef __cplusplus
153} 156}
154#endif 157#endif
diff --git a/src/lib/efreet/efreet_cache_private.h b/src/lib/efreet/efreet_cache_private.h
index af178baaad..79dbfa0c24 100644
--- a/src/lib/efreet/efreet_cache_private.h
+++ b/src/lib/efreet/efreet_cache_private.h
@@ -12,6 +12,32 @@
12#define EFREET_CACHE_VERSION "__efreet//version" 12#define EFREET_CACHE_VERSION "__efreet//version"
13#define EFREET_CACHE_ICON_FALLBACK "__efreet_fallback" 13#define EFREET_CACHE_ICON_FALLBACK "__efreet_fallback"
14 14
15#ifdef EAPI
16# undef EAPI
17#endif
18
19#ifdef _WIN32
20# ifdef EFL_EFREET_BUILD
21# ifdef DLL_EXPORT
22# define EAPI __declspec(dllexport)
23# else
24# define EAPI
25# endif /* ! DLL_EXPORT */
26# else
27# define EAPI __declspec(dllimport)
28# endif /* ! EFL_EFREET_BUILD */
29#else
30# ifdef __GNUC__
31# if __GNUC__ >= 4
32# define EAPI __attribute__ ((visibility("default")))
33# else
34# define EAPI
35# endif
36# else
37# define EAPI
38# endif
39#endif
40
15EAPI const char *efreet_desktop_util_cache_file(void); 41EAPI const char *efreet_desktop_util_cache_file(void);
16EAPI const char *efreet_desktop_cache_file(void); 42EAPI const char *efreet_desktop_cache_file(void);
17EAPI const char *efreet_icon_cache_file(const char *theme); 43EAPI const char *efreet_icon_cache_file(const char *theme);
@@ -57,4 +83,7 @@ struct _Efreet_Cache_Desktop
57 double check_time; /**< Last time we check for disk modification */ 83 double check_time; /**< Last time we check for disk modification */
58}; 84};
59 85
86#undef EAPI
87#define EAPI
88
60#endif 89#endif
diff --git a/src/lib/efreet/efreet_private.h b/src/lib/efreet/efreet_private.h
index 21f75173be..9455485f2f 100644
--- a/src/lib/efreet/efreet_private.h
+++ b/src/lib/efreet/efreet_private.h
@@ -1,6 +1,32 @@
1#ifndef EFREET_PRIVATE_H 1#ifndef EFREET_PRIVATE_H
2#define EFREET_PRIVATE_H 2#define EFREET_PRIVATE_H
3 3
4#ifdef EAPI
5# undef EAPI
6#endif
7
8#ifdef _WIN32
9# ifdef EFL_EFREET_BUILD
10# ifdef DLL_EXPORT
11# define EAPI __declspec(dllexport)
12# else
13# define EAPI
14# endif /* ! DLL_EXPORT */
15# else
16# define EAPI __declspec(dllimport)
17# endif /* ! EFL_EFREET_BUILD */
18#else
19# ifdef __GNUC__
20# if __GNUC__ >= 4
21# define EAPI __attribute__ ((visibility("default")))
22# else
23# define EAPI
24# endif
25# else
26# define EAPI
27# endif
28#endif
29
4#ifdef ENABLE_NLS 30#ifdef ENABLE_NLS
5# include <libintl.h> 31# include <libintl.h>
6# define _(str) dgettext(PACKAGE, str) 32# define _(str) dgettext(PACKAGE, str)
@@ -224,6 +250,9 @@ EAPI void efreet_fsetowner(int fd);
224 250
225EAPI extern int efreet_cache_update; 251EAPI extern int efreet_cache_update;
226 252
253#undef EAPI
254#define EAPI
255
227/** 256/**
228 * @} 257 * @}
229 */ 258 */