summaryrefslogtreecommitdiffstats
path: root/mangle.h
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-09-04 09:50:17 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-09-04 09:50:17 +0000
commit8bac9079bfdb14164f6b9a99d3b08d8076d6d383 (patch)
treec4258ccdfb7a207abb4d80fecf49ae4c4639a831 /mangle.h
parent0f4dfe16f879305591052ab89d5dec1a0bb8edd6 (diff)
downloadmpv-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.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/mangle.h b/mangle.h
index a4d232e26f..7c8f9ef1f0 100644
--- a/mangle.h
+++ b/mangle.h
@@ -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 */