Skip to content

Commit

Permalink
'protected' visibility unsupported on macho
Browse files Browse the repository at this point in the history
Mac builds must not specify 'protected' visibility. Then only support
'default' and 'hidden'.

https://developer.apple.com/library/content/documentation/DeveloperTools/Conceptual/CppRuntimeEnv/Articles/SymbolVisibility.html

Change-Id: I94eccfaa29af0ddcc4a5c1c0e14cf63ef7146462
  • Loading branch information
Johann committed May 15, 2017
1 parent 4a7424a commit 3fbc371
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vpx_ports/mem.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#define DECLARE_ALIGNED(n, typ, val) typ val
#endif

#if defined(__GNUC__) && __GNUC__ >= 4 && !defined(_WIN32)
#if defined(__GNUC__) && __GNUC__ >= 4 && !defined(_WIN32) && !defined(__MACH__)
#define DECLARE_PROTECTED(decl) decl __attribute__((visibility("protected")))
#else
#define DECLARE_PROTECTED(decl) decl
Expand Down

0 comments on commit 3fbc371

Please sign in to comment.