
#ifndef DNS_API_H
#define DNS_API_H

#ifdef LIBDNS_STATIC_DEFINE
#  define DNS_API
#  define LIBDNS_NO_EXPORT
#else
#  ifndef DNS_API
#    ifdef LibDNS_EXPORTS
        /* We are building this library */
#      define DNS_API __attribute__((visibility("default")))
#    else
        /* We are using this library */
#      define DNS_API __attribute__((visibility("default")))
#    endif
#  endif

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

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

#ifndef LIBDNS_DEPRECATED_EXPORT
#  define LIBDNS_DEPRECATED_EXPORT DNS_API LIBDNS_DEPRECATED
#endif

#ifndef LIBDNS_DEPRECATED_NO_EXPORT
#  define LIBDNS_DEPRECATED_NO_EXPORT LIBDNS_NO_EXPORT LIBDNS_DEPRECATED
#endif

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

#endif /* DNS_API_H */
