Skip to content

Commit

Permalink
Fix windows builds
Browse files Browse the repository at this point in the history
  • Loading branch information
eustas authored Jun 10, 2016
1 parent 09543b5 commit 9bce220
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dec/port.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@ To apply compiler hint, enclose the branching condition into macros, like this:
#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
Expand Down

0 comments on commit 9bce220

Please sign in to comment.