Mercurial > libavutil.hg
changeset 487:9df3dec6f840 libavutil
Split MANGLE macro into LOCAL_MANGLE AND EXTERN_PREFIX parts
so that LOCAL_MANGLE can be used without EXTERN_PREFIX.
patch by Alexander Strange, astrange ithinksw com
author | diego |
---|---|
date | Sat, 22 Mar 2008 18:15:12 +0000 |
parents | 2e4747b3d034 |
children | cb7f0f00760e |
files | internal.h |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/internal.h Fri Mar 21 03:11:20 2008 +0000 +++ b/internal.h Sat Mar 22 18:15:12 2008 +0000 @@ -120,11 +120,13 @@ // Use rip-relative addressing if compiling PIC code on x86-64. #if defined(ARCH_X86_64) && defined(PIC) -# define MANGLE(a) EXTERN_PREFIX #a"(%%rip)" +# define LOCAL_MANGLE(a) #a "(%%rip)" #else -# define MANGLE(a) EXTERN_PREFIX #a +# define LOCAL_MANGLE(a) #a #endif +#define MANGLE(a) EXTERN_PREFIX LOCAL_MANGLE(a) + /* debug stuff */ /* dprintf macros */