0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

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
This commit is contained in:
reimar 2009-09-04 09:50:17 +00:00
parent 0f4dfe16f8
commit 8bac9079bf

View File

@ -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 */