[MPlayer-cvslog] r29642 - trunk/mangle.h
reimar
subversion at mplayerhq.hu
Fri Sep 4 11:50:17 CEST 2009
Author: reimar
Date: Fri Sep 4 11:50:17 2009
New Revision: 29642
Log:
Support x86_64 + PIC in mangle.h, needed for OS X 64 bit compiles.
Modified:
trunk/mangle.h
Modified: trunk/mangle.h
==============================================================================
--- trunk/mangle.h Fri Sep 4 11:35:58 2009 (r29641)
+++ trunk/mangle.h Fri Sep 4 11:50:17 2009 (r29642)
@@ -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 */
More information about the MPlayer-cvslog
mailing list