diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-09-04 09:50:17 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-09-04 09:50:17 +0000 |
commit | 8bac9079bfdb14164f6b9a99d3b08d8076d6d383 (patch) | |
tree | c4258ccdfb7a207abb4d80fecf49ae4c4639a831 /mangle.h | |
parent | 0f4dfe16f879305591052ab89d5dec1a0bb8edd6 (diff) | |
download | mpv-8bac9079bfdb14164f6b9a99d3b08d8076d6d383.tar.bz2 mpv-8bac9079bfdb14164f6b9a99d3b08d8076d6d383.tar.xz |
Support x86_64 + PIC in mangle.h, needed for OS X 64 bit compiles.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29642 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mangle.h')
-rw-r--r-- | mangle.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -31,6 +31,13 @@ #define attribute_used #endif +#if ( defined(__PIC__) || defined(__pic__) ) && ! defined(PIC) +# define PIC +#endif +#if ARCH_X86_64 && defined(PIC) +#define MANGLE(a) EXTERN_PREFIX #a "(%%rip)" +#else #define MANGLE(a) EXTERN_PREFIX #a +#endif #endif /* MPLAYER_MANGLE_H */ |