shithub: openh264

Download patch

ref: 73bbef2f5cce48970dd55a2d16941e074f171695
parent: 6482d7b9cde9051607964b77758837f93141457a
author: disigma <yang.yu@disigma.org>
date: Thu Jun 27 13:45:08 EDT 2019

Fix symbol hiding for x86 asm.

The definition of WELS_PRIVATE_EXTERN breaks the compilation, because of the whitespace before it.

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