ethum: fix compilation on Windows due to missing visibility setting.

This commit is contained in:
ChunEon Park 2015-08-22 16:09:25 +09:00
parent 12b4e371ac
commit b5ae1b84f9
1 changed files with 37 additions and 0 deletions

View File

@ -5,6 +5,36 @@
#include <Ecore_Evas.h>
#include <Ethumb.h>
#ifdef EAPI
# undef EAPI
#endif
#ifdef _WIN32
# ifdef EFL_ETHUMB_BUILD
# ifdef DLL_EXPORT
# define EAPI __declspec(dllexport)
# else
# define EAPI
# endif /* ! DLL_EXPORT */
# else
# define EAPI __declspec(dllimport)
# endif /* ! EFL_ETHUMB_BUILD */
#else
# ifdef __GNUC__
# if __GNUC__ >= 4
# define EAPI __attribute__ ((visibility("default")))
# else
# define EAPI
# endif
# else
# define EAPI
# endif
#endif /* ! _WIN32 */
#ifdef __cplusplus
extern "C" {
#endif
typedef struct _Ethumb_Plugin Ethumb_Plugin;
struct _Ethumb_Plugin
@ -30,4 +60,11 @@ EAPI void ethumb_finished_callback_call(Ethumb *e, int result);
EAPI Evas * ethumb_evas_get(const Ethumb *e);
EAPI Ecore_Evas * ethumb_ecore_evas_get(const Ethumb *e);
#ifdef __cplusplus
}
#endif
#undef EAPI
#define EAPI
#endif /* _ETHUMB_PLUGIN_H_ */