X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fppc%2Fasm.S;h=6222b8be064625da575c84f469420934ccf03663;hb=1a9513bfbc6026cf578865c014961492ae3fb60b;hp=700aa0d34085c718a779eb518b7fb106c7299db2;hpb=c28aecc56ace7a6f5f21c1484d00932d4777f4e8;p=ffmpeg diff --git a/libavcodec/ppc/asm.S b/libavcodec/ppc/asm.S index 700aa0d3408..6222b8be064 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