diff options
author | František Dvořák <valtri@civ.zcu.cz> | 2010-10-23 13:26:58 +0200 |
---|---|---|
committer | František Dvořák <valtri@civ.zcu.cz> | 2010-10-23 13:26:58 +0200 |
commit | 561bae45e1e949710639e1825c8278785563ec6a (patch) | |
tree | abce22895322f1d69623a139e1fe3473b2850cc0 /src | |
parent | e06c49677954d4675d002002cbd8f51a768591ab (diff) | |
download | xine-lib-561bae45e1e949710639e1825c8278785563ec6a.tar.gz xine-lib-561bae45e1e949710639e1825c8278785563ec6a.tar.bz2 |
mingw32-w64 port:
- symbols in objects built by mingw64 not mangled
- fixes build of deinterlace post plugin
Diffstat (limited to 'src')
-rw-r--r-- | src/xine-utils/mangle.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/xine-utils/mangle.h b/src/xine-utils/mangle.h index 4ca7db7a5..a897e9229 100644 --- a/src/xine-utils/mangle.h +++ b/src/xine-utils/mangle.h @@ -36,10 +36,15 @@ // Use rip-relative addressing if compiling PIC code on x86-64. #if defined(__MINGW32__) || defined(__CYGWIN__) || defined(__DJGPP__) || \ defined(__OS2__) || (defined (__OpenBSD__) && !defined(__ELF__)) +# if defined(__MINGW64__) +# define EXTERN_PREFIX "" +# else +# define EXTERN_PREFIX "_" +# endif # if defined(__x86_64__) && defined(__PIC__) -# define MANGLE(a) "_" #a"(%%rip)" +# define MANGLE(a) EXTERN_PREFIX #a"(%%rip)" # else -# define MANGLE(a) "_" #a +# define MANGLE(a) EXTERN_PREFIX #a # endif #else # if defined(__x86_64__) && defined(__PIC__) |