diff options
author | Måns Rullgård <mans@mansr.com> | 2008-03-18 02:01:20 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2008-03-18 02:01:20 +0000 |
commit | b4d96ba2a838d26e469887dfb1c6088005d09f0b (patch) | |
tree | 4ea3c641829bd0307b48b27ff717b80b1546b4ab /libavutil | |
parent | 6fcc9af0123abb25b82c43ef631e12069853d725 (diff) | |
download | ffmpeg-b4d96ba2a838d26e469887dfb1c6088005d09f0b.tar.gz |
check for prefix on extern symbols in configure
Originally committed as revision 12484 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/internal.h | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/libavutil/internal.h b/libavutil/internal.h index 6f1dd80639..ccb0974ad2 100644 --- a/libavutil/internal.h +++ b/libavutil/internal.h @@ -119,18 +119,10 @@ #endif // Use rip-relative addressing if compiling PIC code on x86-64. -#if defined(__MINGW32__) || defined(__CYGWIN__) || defined(__DJGPP__) || \ - defined(__OS2__) || defined(__APPLE__) || \ - (defined (__OpenBSD__) && !defined(__ELF__)) -# if defined(ARCH_X86_64) && defined(PIC) -# define MANGLE(a) "_" #a"(%%rip)" -# else -# define MANGLE(a) "_" #a -# endif -#elif defined(ARCH_X86_64) && defined(PIC) -# define MANGLE(a) #a"(%%rip)" +#if defined(ARCH_X86_64) && defined(PIC) +# define MANGLE(a) EXTERN_PREFIX #a"(%%rip)" #else -# define MANGLE(a) #a +# define MANGLE(a) EXTERN_PREFIX #a #endif /* debug stuff */ |