Mercurial > libavutil.hg
changeset 736:9c9a242f840c libavutil
Add LABEL_MANGLE() to export label symbols from inside asm blocks.
author | ramiro |
---|---|
date | Mon, 25 May 2009 01:50:37 +0000 |
parents | 92180cbccda6 |
children | 03f6641ce9e5 |
files | internal.h |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/internal.h Fri May 22 21:32:13 2009 +0000 +++ b/internal.h Mon May 25 01:50:37 2009 +0000 @@ -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)"