efreet: remove the need to order the header correctly for Windows.
This commit is contained in:
parent
04d290c350
commit
0b4a911450
|
@ -149,6 +149,9 @@ EAPI int efreet_shutdown(void);
|
||||||
*/
|
*/
|
||||||
EAPI void efreet_lang_reset(void);
|
EAPI void efreet_lang_reset(void);
|
||||||
|
|
||||||
|
#undef EAPI
|
||||||
|
#define EAPI
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -12,6 +12,32 @@
|
||||||
#define EFREET_CACHE_VERSION "__efreet//version"
|
#define EFREET_CACHE_VERSION "__efreet//version"
|
||||||
#define EFREET_CACHE_ICON_FALLBACK "__efreet_fallback"
|
#define EFREET_CACHE_ICON_FALLBACK "__efreet_fallback"
|
||||||
|
|
||||||
|
#ifdef EAPI
|
||||||
|
# undef EAPI
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
# ifdef EFL_EFREET_BUILD
|
||||||
|
# ifdef DLL_EXPORT
|
||||||
|
# define EAPI __declspec(dllexport)
|
||||||
|
# else
|
||||||
|
# define EAPI
|
||||||
|
# endif /* ! DLL_EXPORT */
|
||||||
|
# else
|
||||||
|
# define EAPI __declspec(dllimport)
|
||||||
|
# endif /* ! EFL_EFREET_BUILD */
|
||||||
|
#else
|
||||||
|
# ifdef __GNUC__
|
||||||
|
# if __GNUC__ >= 4
|
||||||
|
# define EAPI __attribute__ ((visibility("default")))
|
||||||
|
# else
|
||||||
|
# define EAPI
|
||||||
|
# endif
|
||||||
|
# else
|
||||||
|
# define EAPI
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
EAPI const char *efreet_desktop_util_cache_file(void);
|
EAPI const char *efreet_desktop_util_cache_file(void);
|
||||||
EAPI const char *efreet_desktop_cache_file(void);
|
EAPI const char *efreet_desktop_cache_file(void);
|
||||||
EAPI const char *efreet_icon_cache_file(const char *theme);
|
EAPI const char *efreet_icon_cache_file(const char *theme);
|
||||||
|
@ -57,4 +83,7 @@ struct _Efreet_Cache_Desktop
|
||||||
double check_time; /**< Last time we check for disk modification */
|
double check_time; /**< Last time we check for disk modification */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#undef EAPI
|
||||||
|
#define EAPI
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1,6 +1,32 @@
|
||||||
#ifndef EFREET_PRIVATE_H
|
#ifndef EFREET_PRIVATE_H
|
||||||
#define EFREET_PRIVATE_H
|
#define EFREET_PRIVATE_H
|
||||||
|
|
||||||
|
#ifdef EAPI
|
||||||
|
# undef EAPI
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
# ifdef EFL_EFREET_BUILD
|
||||||
|
# ifdef DLL_EXPORT
|
||||||
|
# define EAPI __declspec(dllexport)
|
||||||
|
# else
|
||||||
|
# define EAPI
|
||||||
|
# endif /* ! DLL_EXPORT */
|
||||||
|
# else
|
||||||
|
# define EAPI __declspec(dllimport)
|
||||||
|
# endif /* ! EFL_EFREET_BUILD */
|
||||||
|
#else
|
||||||
|
# ifdef __GNUC__
|
||||||
|
# if __GNUC__ >= 4
|
||||||
|
# define EAPI __attribute__ ((visibility("default")))
|
||||||
|
# else
|
||||||
|
# define EAPI
|
||||||
|
# endif
|
||||||
|
# else
|
||||||
|
# define EAPI
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef ENABLE_NLS
|
#ifdef ENABLE_NLS
|
||||||
# include <libintl.h>
|
# include <libintl.h>
|
||||||
# define _(str) dgettext(PACKAGE, str)
|
# define _(str) dgettext(PACKAGE, str)
|
||||||
|
@ -224,6 +250,9 @@ EAPI void efreet_fsetowner(int fd);
|
||||||
|
|
||||||
EAPI extern int efreet_cache_update;
|
EAPI extern int efreet_cache_update;
|
||||||
|
|
||||||
|
#undef EAPI
|
||||||
|
#define EAPI
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @}
|
* @}
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue