Revision b4d96ba2 libavutil/internal.h

View differences:

libavutil/internal.h
119 119
#endif
120 120

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

  
136 128
/* debug stuff */

Also available in: Unified diff