Mercurial > libavutil.hg
diff internal.h @ 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 D?nmez ismail namtrac org
| author | diego |
|---|---|
| date | Mon, 17 Mar 2008 07:49:03 +0000 |
| parents | bdc8433d739e |
| children | e841859035a6 |
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
