
#ifndef XML_API_H
#define XML_API_H

#ifdef LIBXML_STATIC_DEFINE
#  define XML_API
#  define LIBXML_NO_EXPORT
#else
#  ifndef XML_API
#    ifdef LibXML_EXPORTS
        /* We are building this library */
#      define XML_API __attribute__((visibility("default")))
#    else
        /* We are using this library */
#      define XML_API __attribute__((visibility("default")))
#    endif
#  endif

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

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

#ifndef LIBXML_DEPRECATED_EXPORT
#  define LIBXML_DEPRECATED_EXPORT XML_API LIBXML_DEPRECATED
#endif

#ifndef LIBXML_DEPRECATED_NO_EXPORT
#  define LIBXML_DEPRECATED_NO_EXPORT LIBXML_NO_EXPORT LIBXML_DEPRECATED
#endif

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

#endif /* XML_API_H */
