#ifndef BROTLI_COMMON_PORT_H_
#define BROTLI_COMMON_PORT_H_
#define BROTLI_MAKE_VERSION(major, minor, revision) …
#if defined(__GNUC__) && defined(__GNUC_PATCHLEVEL__)
#define BROTLI_GNUC_VERSION …
#elif defined(__GNUC__)
#define BROTLI_GNUC_VERSION …
#endif
#if defined(BROTLI_GNUC_VERSION)
#define BROTLI_GNUC_VERSION_CHECK(major, minor, patch) …
#else
#define BROTLI_GNUC_VERSION_CHECK …
#endif
#if defined(_MSC_FULL_VER) && (_MSC_FULL_VER >= 140000000)
#define BROTLI_MSVC_VERSION …
#elif defined(_MSC_FULL_VER)
#define BROTLI_MSVC_VERSION …
#elif defined(_MSC_VER)
#define BROTLI_MSVC_VERSION …
#endif
#if !defined(_MSC_VER)
#define BROTLI_MSVC_VERSION_CHECK(major, minor, patch) …
#elif defined(_MSC_VER) && (_MSC_VER >= 1400)
#define BROTLI_MSVC_VERSION_CHECK …
#elif defined(_MSC_VER) && (_MSC_VER >= 1200)
#define BROTLI_MSVC_VERSION_CHECK …
#else
#define BROTLI_MSVC_VERSION_CHECK …
#endif
#if defined(__INTEL_COMPILER) && defined(__INTEL_COMPILER_UPDATE)
#define BROTLI_INTEL_VERSION …
#elif defined(__INTEL_COMPILER)
#define BROTLI_INTEL_VERSION …
#endif
#if defined(BROTLI_INTEL_VERSION)
#define BROTLI_INTEL_VERSION_CHECK …
#else
#define BROTLI_INTEL_VERSION_CHECK(major, minor, patch) …
#endif
#if defined(__PGI) && \
defined(__PGIC__) && defined(__PGIC_MINOR__) && defined(__PGIC_PATCHLEVEL__)
#define BROTLI_PGI_VERSION …
#endif
#if defined(BROTLI_PGI_VERSION)
#define BROTLI_PGI_VERSION_CHECK …
#else
#define BROTLI_PGI_VERSION_CHECK(major, minor, patch) …
#endif
#if defined(__SUNPRO_C) && (__SUNPRO_C > 0x1000)
#define BROTLI_SUNPRO_VERSION …
#elif defined(__SUNPRO_C)
#define BROTLI_SUNPRO_VERSION …
#elif defined(__SUNPRO_CC) && (__SUNPRO_CC > 0x1000)
#define BROTLI_SUNPRO_VERSION …
#elif defined(__SUNPRO_CC)
#define BROTLI_SUNPRO_VERSION …
#endif
#if defined(BROTLI_SUNPRO_VERSION)
#define BROTLI_SUNPRO_VERSION_CHECK …
#else
#define BROTLI_SUNPRO_VERSION_CHECK(major, minor, patch) …
#endif
#if defined(__CC_ARM) && defined(__ARMCOMPILER_VERSION)
#define BROTLI_ARM_VERSION …
#elif defined(__CC_ARM) && defined(__ARMCC_VERSION)
#define BROTLI_ARM_VERSION …
#endif
#if defined(BROTLI_ARM_VERSION)
#define BROTLI_ARM_VERSION_CHECK …
#else
#define BROTLI_ARM_VERSION_CHECK(major, minor, patch) …
#endif
#if defined(__ibmxl__)
#define BROTLI_IBM_VERSION …
#elif defined(__xlC__) && defined(__xlC_ver__)
#define BROTLI_IBM_VERSION …
#elif defined(__xlC__)
#define BROTLI_IBM_VERSION …
#endif
#if defined(BROTLI_IBM_VERSION)
#define BROTLI_IBM_VERSION_CHECK …
#else
#define BROTLI_IBM_VERSION_CHECK(major, minor, patch) …
#endif
#if defined(__TI_COMPILER_VERSION__)
#define BROTLI_TI_VERSION …
#endif
#if defined(BROTLI_TI_VERSION)
#define BROTLI_TI_VERSION_CHECK …
#else
#define BROTLI_TI_VERSION_CHECK(major, minor, patch) …
#endif
#if defined(__IAR_SYSTEMS_ICC__)
#if __VER__ > 1000
#define BROTLI_IAR_VERSION …
#else
#define BROTLI_IAR_VERSION …
#endif
#endif
#if defined(BROTLI_IAR_VERSION)
#define BROTLI_IAR_VERSION_CHECK …
#else
#define BROTLI_IAR_VERSION_CHECK(major, minor, patch) …
#endif
#if defined(__TINYC__)
#define BROTLI_TINYC_VERSION …
#endif
#if defined(BROTLI_TINYC_VERSION)
#define BROTLI_TINYC_VERSION_CHECK …
#else
#define BROTLI_TINYC_VERSION_CHECK(major, minor, patch) …
#endif
#if defined(__has_attribute)
#define BROTLI_GNUC_HAS_ATTRIBUTE(attribute, major, minor, patch) …
#else
#define BROTLI_GNUC_HAS_ATTRIBUTE …
#endif
#if defined(__has_builtin)
#define BROTLI_GNUC_HAS_BUILTIN(builtin, major, minor, patch) …
#else
#define BROTLI_GNUC_HAS_BUILTIN …
#endif
#if defined(__has_feature)
#define BROTLI_HAS_FEATURE(feature) …
#else
#define BROTLI_HAS_FEATURE …
#endif
#if defined(_WIN32) || defined(__CYGWIN__)
#define BROTLI_PUBLIC
#elif BROTLI_GNUC_VERSION_CHECK(3, 3, 0) || \
BROTLI_TI_VERSION_CHECK(8, 0, 0) || \
BROTLI_INTEL_VERSION_CHECK(16, 0, 0) || \
BROTLI_ARM_VERSION_CHECK(4, 1, 0) || \
BROTLI_IBM_VERSION_CHECK(13, 1, 0) || \
BROTLI_SUNPRO_VERSION_CHECK(5, 11, 0) || \
(BROTLI_TI_VERSION_CHECK(7, 3, 0) && \
defined(__TI_GNU_ATTRIBUTE_SUPPORT__) && defined(__TI_EABI__))
#define BROTLI_PUBLIC …
#else
#define BROTLI_PUBLIC
#endif
#if !defined(BROTLI_INTERNAL)
#if defined(_WIN32) || defined(__CYGWIN__)
#define BROTLI_INTERNAL
#elif BROTLI_GNUC_VERSION_CHECK(3, 3, 0) || \
BROTLI_TI_VERSION_CHECK(8, 0, 0) || \
BROTLI_INTEL_VERSION_CHECK(16, 0, 0) || \
BROTLI_ARM_VERSION_CHECK(4, 1, 0) || \
BROTLI_IBM_VERSION_CHECK(13, 1, 0) || \
BROTLI_SUNPRO_VERSION_CHECK(5, 11, 0) || \
(BROTLI_TI_VERSION_CHECK(7, 3, 0) && \
defined(__TI_GNU_ATTRIBUTE_SUPPORT__) && defined(__TI_EABI__))
#define BROTLI_INTERNAL …
#else
#define BROTLI_INTERNAL
#endif
#endif
#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) && \
!defined(__STDC_NO_VLA__) && !defined(__cplusplus) && \
!defined(__PGI) && !defined(__PGIC__) && !defined(__TINYC__) && \
!defined(__clang__)
#define BROTLI_ARRAY_PARAM …
#else
#define BROTLI_ARRAY_PARAM(name) …
#endif
#if defined(BROTLI_SHARED_COMPILATION)
#if defined(_WIN32)
#if defined(BROTLICOMMON_SHARED_COMPILATION)
#define BROTLI_COMMON_API …
#else
#define BROTLI_COMMON_API …
#endif
#if defined(BROTLIDEC_SHARED_COMPILATION)
#define BROTLI_DEC_API …
#else
#define BROTLI_DEC_API …
#endif
#if defined(BROTLIENC_SHARED_COMPILATION)
#define BROTLI_ENC_API …
#else
#define BROTLI_ENC_API …
#endif
#else
#define BROTLI_COMMON_API …
#define BROTLI_DEC_API …
#define BROTLI_ENC_API …
#endif
#else
#define BROTLI_COMMON_API
#define BROTLI_DEC_API
#define BROTLI_ENC_API
#endif
#if defined(BROTLI_BUILD_ENC_EXTRA_API)
#define BROTLI_ENC_EXTRA_API …
#else
#define BROTLI_ENC_EXTRA_API …
#endif
#endif