diff options
Diffstat (limited to 'src/lib/ethumb/ethumb_api.h')
-rw-r--r-- | src/lib/ethumb/ethumb_api.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/lib/ethumb/ethumb_api.h b/src/lib/ethumb/ethumb_api.h new file mode 100644 index 0000000000..51e88af72c --- /dev/null +++ b/src/lib/ethumb/ethumb_api.h @@ -0,0 +1,34 @@ +#ifndef _EFL_ETHUMB_API_H +#define _EFL_ETHUMB_API_H + +#ifdef ETHUMB_API +#error ETHUMB_API should not be already defined +#endif + +#ifdef _WIN32 +# ifndef ETHUMB_STATIC +# ifdef ETHUMB_BUILD +# define ETHUMB_API __declspec(dllexport) +# else +# define ETHUMB_API __declspec(dllimport) +# endif +# else +# define ETHUMB_API +# endif +# define ETHUMB_API_WEAK +#else +# ifdef __GNUC__ +# if __GNUC__ >= 4 +# define ETHUMB_API __attribute__ ((visibility("default"))) +# define ETHUMB_API_WEAK __attribute__ ((weak)) +# else +# define ETHUMB_API +# define ETHUMB_API_WEAK +# endif +# else +# define ETHUMB_API +# define ETHUMB_API_WEAK +# endif +#endif + +#endif |