Hide symbols with nasm.
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 3 Dec 2012 20:04:58 +0000 (21:04 +0100)
committerErik de Castro Lopo <erikd@mega-nerd.com>
Tue, 4 Dec 2012 06:45:32 +0000 (17:45 +1100)
Hide all cglobal symbols with nasm >= 2.

src/libFLAC/ia32/nasm.h

index 8455772..e58b744 100644 (file)
        %ifdef FLAC__PUBLIC_NEEDS_UNDERSCORE
                global _%1
        %else
-               global %1
+               %if __NASM_MAJOR__ >= 2
+                       global %1:function hidden
+               %else
+                       global %1
+               %endif
        %endif
 %endmacro