efl/src/lib/ethumb/ethumb_api.h

35 lines
650 B
C

#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