
#ifndef AKONADI_CALENDAR_CORE_EXPORT_H
#define AKONADI_CALENDAR_CORE_EXPORT_H

#ifdef AKONADI_CALENDAR_CORE_STATIC_DEFINE
#  define AKONADI_CALENDAR_CORE_EXPORT
#  define AKONADI_CALENDAR_CORE_NO_EXPORT
#else
#  ifndef AKONADI_CALENDAR_CORE_EXPORT
#    ifdef KPim6AkonadiCalendarCore_EXPORTS
        /* We are building this library */
#      define AKONADI_CALENDAR_CORE_EXPORT __attribute__((visibility("default")))
#    else
        /* We are using this library */
#      define AKONADI_CALENDAR_CORE_EXPORT __attribute__((visibility("default")))
#    endif
#  endif

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

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

#ifndef AKONADI_CALENDAR_CORE_DECL_DEPRECATED_EXPORT
#  define AKONADI_CALENDAR_CORE_DECL_DEPRECATED_EXPORT AKONADI_CALENDAR_CORE_EXPORT AKONADI_CALENDAR_CORE_DECL_DEPRECATED
#endif

#ifndef AKONADI_CALENDAR_CORE_DECL_DEPRECATED_NO_EXPORT
#  define AKONADI_CALENDAR_CORE_DECL_DEPRECATED_NO_EXPORT AKONADI_CALENDAR_CORE_NO_EXPORT AKONADI_CALENDAR_CORE_DECL_DEPRECATED
#endif

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

#define AKONADI_CALENDAR_CORE_DECL_DEPRECATED_TEXT(text) __attribute__ ((__deprecated__(text)))

#if defined(AKONADI_CALENDAR_CORE_NO_DEPRECATED)
#  undef AKONADI_CALENDAR_CORE_DEPRECATED
#  define AKONADI_CALENDAR_CORE_DEPRECATED_EXPORT AKONADI_CALENDAR_CORE_EXPORT
#  define AKONADI_CALENDAR_CORE_DEPRECATED_NO_EXPORT AKONADI_CALENDAR_CORE_NO_EXPORT
#elif defined(AKONADI_CALENDAR_CORE_NO_DEPRECATED_WARNINGS)
#  define AKONADI_CALENDAR_CORE_DEPRECATED
#  define AKONADI_CALENDAR_CORE_DEPRECATED_EXPORT AKONADI_CALENDAR_CORE_EXPORT
#  define AKONADI_CALENDAR_CORE_DEPRECATED_NO_EXPORT AKONADI_CALENDAR_CORE_NO_EXPORT
#else
#  define AKONADI_CALENDAR_CORE_DEPRECATED AKONADI_CALENDAR_CORE_DECL_DEPRECATED
#  define AKONADI_CALENDAR_CORE_DEPRECATED_EXPORT AKONADI_CALENDAR_CORE_DECL_DEPRECATED_EXPORT
#  define AKONADI_CALENDAR_CORE_DEPRECATED_NO_EXPORT AKONADI_CALENDAR_CORE_DECL_DEPRECATED_NO_EXPORT
#endif

/* No deprecated API had been removed from build */
#define AKONADI_CALENDAR_CORE_EXCLUDE_DEPRECATED_BEFORE_AND_AT 0

#define AKONADI_CALENDAR_CORE_BUILD_DEPRECATED_SINCE(major, minor) 1

#ifdef AKONADI_CALENDAR_CORE_NO_DEPRECATED
#  define AKONADI_CALENDAR_CORE_DISABLE_DEPRECATED_BEFORE_AND_AT 0x60702
#endif
#ifdef AKONADI_CALENDAR_CORE_NO_DEPRECATED_WARNINGS
#  define AKONADI_CALENDAR_CORE_DEPRECATED_WARNINGS_SINCE 0
#endif

#ifndef AKONADI_CALENDAR_CORE_DEPRECATED_WARNINGS_SINCE
#  ifdef AKONADI_CALENDAR_CORE_DISABLE_DEPRECATED_BEFORE_AND_AT
#    define AKONADI_CALENDAR_CORE_DEPRECATED_WARNINGS_SINCE AKONADI_CALENDAR_CORE_DISABLE_DEPRECATED_BEFORE_AND_AT
#  else
#    define AKONADI_CALENDAR_CORE_DEPRECATED_WARNINGS_SINCE 0x60702
#  endif
#endif

#ifndef AKONADI_CALENDAR_CORE_DISABLE_DEPRECATED_BEFORE_AND_AT
#  define AKONADI_CALENDAR_CORE_DISABLE_DEPRECATED_BEFORE_AND_AT 0x60000
#endif

#ifdef AKONADI_CALENDAR_CORE_DEPRECATED
#  define AKONADI_CALENDAR_CORE_ENABLE_DEPRECATED_SINCE(major, minor) (((major<<16)|(minor<<8)) > AKONADI_CALENDAR_CORE_DISABLE_DEPRECATED_BEFORE_AND_AT)
#else
#  define AKONADI_CALENDAR_CORE_ENABLE_DEPRECATED_SINCE(major, minor) 0
#endif

#endif /* AKONADI_CALENDAR_CORE_EXPORT_H */
