Hide symbols with nasm.

Hide all cglobal symbols with nasm >= 2.
This commit is contained in:
Miroslav Lichvar
2012-12-03 21:04:58 +01:00
committed by Erik de Castro Lopo
parent 19c78e58d7
commit 49b9673c89

View File

@@ -56,9 +56,13 @@
%imacro cglobal 1 %imacro cglobal 1
%ifdef FLAC__PUBLIC_NEEDS_UNDERSCORE %ifdef FLAC__PUBLIC_NEEDS_UNDERSCORE
global _%1 global _%1
%else
%if __NASM_MAJOR__ >= 2
global %1:function hidden
%else %else
global %1 global %1
%endif %endif
%endif
%endmacro %endmacro
%imacro cextern 1 %imacro cextern 1