
#ifndef GC_API_H
#define GC_API_H

#ifdef LIBGC_STATIC_DEFINE
#  define GC_API
#  define LIBGC_NO_EXPORT
#else
#  ifndef GC_API
#    ifdef LibGC_EXPORTS
        /* We are building this library */
#      define GC_API __attribute__((visibility("default")))
#    else
        /* We are using this library */
#      define GC_API __attribute__((visibility("default")))
#    endif
#  endif

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

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

#ifndef LIBGC_DEPRECATED_EXPORT
#  define LIBGC_DEPRECATED_EXPORT GC_API LIBGC_DEPRECATED
#endif

#ifndef LIBGC_DEPRECATED_NO_EXPORT
#  define LIBGC_DEPRECATED_NO_EXPORT LIBGC_NO_EXPORT LIBGC_DEPRECATED
#endif

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

#endif /* GC_API_H */
