]> granicus.if.org Git - libvpx/commitdiff
'protected' visibility unsupported on macho
authorJohann <johannkoenig@google.com>
Mon, 15 May 2017 17:39:44 +0000 (10:39 -0700)
committerJohann <johannkoenig@google.com>
Mon, 15 May 2017 18:29:22 +0000 (11:29 -0700)
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

vpx_ports/mem.h

index 35751cef8c6cfe902ddbe799684b1cd682ec32e8..9c21532b1173d08a0e204fc136b0fa36d3f58aec 100644 (file)
@@ -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