ethum: fix compilation on Windows due to missing visibility setting.
This commit is contained in:
parent
12b4e371ac
commit
b5ae1b84f9
|
@ -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_ */
|
||||
|
|
Loading…
Reference in New Issue