diff options
Diffstat (limited to 'src/lib/efl_canvas_wl/efl_canvas_wl_api.h')
-rw-r--r-- | src/lib/efl_canvas_wl/efl_canvas_wl_api.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/lib/efl_canvas_wl/efl_canvas_wl_api.h b/src/lib/efl_canvas_wl/efl_canvas_wl_api.h new file mode 100644 index 0000000000..349a3bc850 --- /dev/null +++ b/src/lib/efl_canvas_wl/efl_canvas_wl_api.h @@ -0,0 +1,34 @@ +#ifndef _EFL_EFL_CANVAS_WL_API_H +#define _EFL_EFL_CANVAS_WL_API_H + +#ifdef EFL_CANVAS_WL_API +#error EFL_CANVAS_WL_API should not be already defined +#endif + +#ifdef _WIN32 +# ifndef EFL_CANVAS_WL_STATIC +# ifdef EFL_CANVAS_WL_BUILD +# define EFL_CANVAS_WL_API __declspec(dllexport) +# else +# define EFL_CANVAS_WL_API __declspec(dllimport) +# endif +# else +# define EFL_CANVAS_WL_API +# endif +# define EFL_CANVAS_WL_API_WEAK +#else +# ifdef __GNUC__ +# if __GNUC__ >= 4 +# define EFL_CANVAS_WL_API __attribute__ ((visibility("default"))) +# define EFL_CANVAS_WL_API_WEAK __attribute__ ((weak)) +# else +# define EFL_CANVAS_WL_API +# define EFL_CANVAS_WL_API_WEAK +# endif +# else +# define EFL_CANVAS_WL_API +# define EFL_CANVAS_WL_API_WEAK +# endif +#endif + +#endif |