Mercurial > libavutil.hg
changeset 472:f4e8f2cd30b7 libavutil
Fix MANGLE macro on Mac OS X.
Allows compiling a 64 bit FFmpeg on Mac OS X without using --disable-mmx.
patch by smail Dnmez ismail namtrac org
author | diego |
---|---|
date | Mon, 17 Mar 2008 07:49:03 +0000 |
parents | 0e6deb0081fd |
children | e841859035a6 |
files | internal.h |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/internal.h Thu Mar 13 18:30:07 2008 +0000 +++ b/internal.h Mon Mar 17 07:49:03 2008 +0000 @@ -120,7 +120,8 @@ // Use rip-relative addressing if compiling PIC code on x86-64. #if defined(__MINGW32__) || defined(__CYGWIN__) || defined(__DJGPP__) || \ - defined(__OS2__) || (defined (__OpenBSD__) && !defined(__ELF__)) + defined(__OS2__) || defined(__APPLE__) || \ + (defined (__OpenBSD__) && !defined(__ELF__)) # if defined(ARCH_X86_64) && defined(PIC) # define MANGLE(a) "_" #a"(%%rip)" # else @@ -129,8 +130,6 @@ #else # if defined(ARCH_X86_64) && defined(PIC) # define MANGLE(a) #a"(%%rip)" -# elif defined(__APPLE__) -# define MANGLE(a) "_" #a # else # define MANGLE(a) #a # endif