Fix windows builds

This commit is contained in:
eustas 2016-06-10 11:06:15 +02:00 committed by GitHub
parent 09543b5fc5
commit 9bce220b70

View File

@ -134,7 +134,9 @@ OR:
#define ATTRIBUTE_ALWAYS_INLINE
#endif
#if BROTLI_MODERN_COMPILER || __has_attribute(visibility)
#if defined(_WIN32) || defined(__CYGWIN__)
#define ATTRIBUTE_VISIBILITY_HIDDEN
#elif BROTLI_MODERN_COMPILER || __has_attribute(visibility)
#define ATTRIBUTE_VISIBILITY_HIDDEN __attribute__ ((visibility ("hidden")))
#else
#define ATTRIBUTE_VISIBILITY_HIDDEN