diff options
author | Johann <johannkoenig@google.com> | 2017-05-15 10:39:44 -0700 |
---|---|---|
committer | Johann <johannkoenig@google.com> | 2017-05-15 11:29:22 -0700 |
commit | 3fbc371e999c00967441befb7082413dd533f9a2 (patch) | |
tree | 26f0709b7f849a4e593465f98c3d738ec06a7f44 /vpx_ports/mem.h | |
parent | 4a7424adba7a65766a92635dc67b6e7d94646693 (diff) | |
download | libvpx-3fbc371e999c00967441befb7082413dd533f9a2.tar libvpx-3fbc371e999c00967441befb7082413dd533f9a2.tar.gz libvpx-3fbc371e999c00967441befb7082413dd533f9a2.tar.bz2 libvpx-3fbc371e999c00967441befb7082413dd533f9a2.zip |
'protected' visibility unsupported on macho
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
Diffstat (limited to 'vpx_ports/mem.h')
-rw-r--r-- | vpx_ports/mem.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vpx_ports/mem.h b/vpx_ports/mem.h index 35751cef8..9c21532b1 100644 --- a/vpx_ports/mem.h +++ b/vpx_ports/mem.h @@ -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 |