]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Add LABEL_MANGLE() to export label symbols from inside asm blocks.
authorramiro <ramiro@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Mon, 25 May 2009 01:50:37 +0000 (01:50 +0000)
committerramiro <ramiro@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Mon, 25 May 2009 01:50:37 +0000 (01:50 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18934 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavutil/internal.h

index a41a94636f10dde457d1877380416e8a08c06f2e..c9bab52e488e6e1bead732d914c5c5de49229b9e 100644 (file)
@@ -99,6 +99,9 @@
 #    define offsetof(T,F) ((unsigned int)((char *)&((T *)0)->F))
 #endif
 
+/* Use to export labels from asm. */
+#define LABEL_MANGLE(a) EXTERN_PREFIX #a
+
 // Use rip-relative addressing if compiling PIC code on x86-64.
 #if ARCH_X86_64 && defined(PIC)
 #    define LOCAL_MANGLE(a) #a "(%%rip)"