Revision 8e9ccb6c libavutil/internal.h

View differences:

libavutil/internal.h
120 120

  
121 121
// Use rip-relative addressing if compiling PIC code on x86-64.
122 122
#if defined(__MINGW32__) || defined(__CYGWIN__) || defined(__DJGPP__) || \
123
    defined(__OS2__) || (defined (__OpenBSD__) && !defined(__ELF__))
123
    defined(__OS2__) || defined(__APPLE__) || \
124
    (defined (__OpenBSD__) && !defined(__ELF__))
124 125
#    if defined(ARCH_X86_64) && defined(PIC)
125 126
#        define MANGLE(a) "_" #a"(%%rip)"
126 127
#    else
......
129 130
#else
130 131
#    if defined(ARCH_X86_64) && defined(PIC)
131 132
#        define MANGLE(a) #a"(%%rip)"
132
#    elif defined(__APPLE__)
133
#        define MANGLE(a) "_" #a
134 133
#    else
135 134
#        define MANGLE(a) #a
136 135
#    endif

Also available in: Unified diff