diff options
author | Alexander Strange <astrange@ithinksw.com> | 2008-03-22 18:15:12 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2008-03-22 18:15:12 +0000 |
commit | df22c35dfb45d511dafdb1e4b34fc46907f806b1 (patch) | |
tree | cf7062e73de948334c07ceed2088ce24dce6dd57 /libavutil/internal.h | |
parent | aa089f6c05f9f95fe2e7ea9e3b6bc9d2aa584917 (diff) | |
download | ffmpeg-df22c35dfb45d511dafdb1e4b34fc46907f806b1.tar.gz |
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
Originally committed as revision 12558 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/internal.h')
-rw-r--r-- | libavutil/internal.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libavutil/internal.h b/libavutil/internal.h index 66a136de68..8e4f81b244 100644 --- a/libavutil/internal.h +++ b/libavutil/internal.h @@ -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 */ |