
#ifndef MEDIA_API_H
#define MEDIA_API_H

#ifdef LIBMEDIA_STATIC_DEFINE
#  define MEDIA_API
#  define LIBMEDIA_NO_EXPORT
#else
#  ifndef MEDIA_API
#    ifdef LibMedia_EXPORTS
        /* We are building this library */
#      define MEDIA_API __attribute__((visibility("default")))
#    else
        /* We are using this library */
#      define MEDIA_API __attribute__((visibility("default")))
#    endif
#  endif

#  ifndef LIBMEDIA_NO_EXPORT
#    define LIBMEDIA_NO_EXPORT __attribute__((visibility("hidden")))
#  endif
#endif

#ifndef LIBMEDIA_DEPRECATED
#  define LIBMEDIA_DEPRECATED __attribute__ ((__deprecated__))
#endif

#ifndef LIBMEDIA_DEPRECATED_EXPORT
#  define LIBMEDIA_DEPRECATED_EXPORT MEDIA_API LIBMEDIA_DEPRECATED
#endif

#ifndef LIBMEDIA_DEPRECATED_NO_EXPORT
#  define LIBMEDIA_DEPRECATED_NO_EXPORT LIBMEDIA_NO_EXPORT LIBMEDIA_DEPRECATED
#endif

/* NOLINTNEXTLINE(readability-avoid-unconditional-preprocessor-if) */
#if 0 /* DEFINE_NO_DEPRECATED */
#  ifndef LIBMEDIA_NO_DEPRECATED
#    define LIBMEDIA_NO_DEPRECATED
#  endif
#endif

#endif /* MEDIA_API_H */
