shithub: openh264

Download patch

ref: 202a4fb0b26cb3ec361832659de31faa20969389
parent: 302c64ee15c07ce967ae7f703c445387734ddb65
parent: 64b2e8a818f1d6ba00c4eb0ce40324ef848e477e
author: guangwei <[email protected]>
date: Mon Jan 8 03:43:06 EST 2018

Merge pull request #2897 from tanderson-google/private-extern

Allow overriding symbol visibility

--- a/codec/common/x86/asm_inc.asm
+++ b/codec/common/x86/asm_inc.asm
@@ -485,12 +485,15 @@
 %endmacro
 
 %macro WELS_EXTERN 1
+    %ifndef WELS_PRIVATE_EXTERN
+        %define WELS_PRIVATE_EXTERN
+    %endif
     ALIGN 16, nop
     %ifdef PREFIX
-        global _%1
+        global _%1 WELS_PRIVATE_EXTERN
         %define %1 _%1
     %else
-        global %1
+        global %1 WELS_PRIVATE_EXTERN
     %endif
     %1:
 %endmacro