From 25ca74d314c3c37f7656dd5ff1a66e743f2d0fa3 Mon Sep 17 00:00:00 2001 From: Pavel Koshevoy Date: Thu, 14 Jul 2016 22:06:07 -0600 Subject: 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" Signed-off-by: Michael Niedermayer --- libavcodec/ppc/asm.S | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'libavcodec/ppc/asm.S') 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 -- cgit v1.2.3