Hide all cglobal symbols with nasm >= 2.
---
 src/libFLAC/ia32/nasm.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/libFLAC/ia32/nasm.h b/src/libFLAC/ia32/nasm.h
index 8455772..e58b744 100644
--- a/src/libFLAC/ia32/nasm.h
+++ b/src/libFLAC/ia32/nasm.h
@@ -57,7 +57,11 @@
        %ifdef FLAC__PUBLIC_NEEDS_UNDERSCORE
                global _%1
        %else
-               global %1
+               %if __NASM_MAJOR__ >= 2
+                       global %1:function hidden
+               %else
+                       global %1
+               %endif
        %endif
 %endmacro
 
-- 
1.7.11.7

_______________________________________________
flac-dev mailing list
flac-dev@xiph.org
http://lists.xiph.org/mailman/listinfo/flac-dev

Reply via email to