
#ifndef REGEX_API_H
#define REGEX_API_H

#ifdef LIBREGEX_STATIC_DEFINE
#  define REGEX_API
#  define LIBREGEX_NO_EXPORT
#else
#  ifndef REGEX_API
#    ifdef LibRegex_EXPORTS
        /* We are building this library */
#      define REGEX_API __attribute__((visibility("default")))
#    else
        /* We are using this library */
#      define REGEX_API __attribute__((visibility("default")))
#    endif
#  endif

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

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

#ifndef LIBREGEX_DEPRECATED_EXPORT
#  define LIBREGEX_DEPRECATED_EXPORT REGEX_API LIBREGEX_DEPRECATED
#endif

#ifndef LIBREGEX_DEPRECATED_NO_EXPORT
#  define LIBREGEX_DEPRECATED_NO_EXPORT LIBREGEX_NO_EXPORT LIBREGEX_DEPRECATED
#endif

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

#endif /* REGEX_API_H */
