diff options
author | Pavel Koshevoy <pkoshevoy@gmail.com> | 2016-07-14 22:06:07 -0600 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-07-15 13:58:54 +0200 |
commit | 25ca74d314c3c37f7656dd5ff1a66e743f2d0fa3 (patch) | |
tree | 66029cde14ccb6d76d7e1274f911d7d10bb91e1b /libavcodec/ppc/asm.S | |
parent | 77726d32a872ad500434fd8799b289cf56215047 (diff) | |
download | ffmpeg-25ca74d314c3c37f7656dd5ff1a66e743f2d0fa3.tar.gz |
Restore compatibility with powerpc-apple-darwin9-gcc-4.2.1
... and attempt to preserve compatibility with clang that was
introduced in 311a953c76081fca99b872629d248f9d69ebc0c3 (untested)
Reviewed-by: "Ronald S. Bultje" <rsbultje@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/ppc/asm.S')
-rw-r--r-- | libavcodec/ppc/asm.S | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libavcodec/ppc/asm.S b/libavcodec/ppc/asm.S index 700aa0d340..6222b8be06 100644 --- a/libavcodec/ppc/asm.S +++ b/libavcodec/ppc/asm.S @@ -24,6 +24,12 @@ #define JOIN(a, b) GLUE(a, b) #define X(s) JOIN(EXTERN_ASM, s) +#if __APPLE__ +#define R(n) r ## n +#else +#define R(n) n +#endif + #if ARCH_PPC64 #define PTR .quad @@ -53,7 +59,7 @@ L(\name): .endm .macro movrel rd, sym, gp - ld \rd, \sym@got(2) + ld \rd, \sym@got(R(2)) .endm .macro get_got rd |