Commit 5f112e1f authored by Sam Hocevar's avatar Sam Hocevar Committed by Diego Biurrun

Proper mangling information for symbols in OS X Mach-O shared objects.

patch by Samuel Hocevar, sam ..at.. zoy ..dot.. org

Originally committed as revision 5120 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 79c343c0
...@@ -19,6 +19,8 @@ ...@@ -19,6 +19,8 @@
#else #else
#if defined(ARCH_X86_64) && defined(PIC) #if defined(ARCH_X86_64) && defined(PIC)
#define MANGLE(a) #a"(%%rip)" #define MANGLE(a) #a"(%%rip)"
#elif defined(CONFIG_DARWIN)
#define MANGLE(a) "_" #a
#else #else
#define MANGLE(a) #a #define MANGLE(a) #a
#endif #endif
......
...@@ -267,6 +267,8 @@ static inline float floorf(float f) { ...@@ -267,6 +267,8 @@ static inline float floorf(float f) {
# else # else
# if defined(ARCH_X86_64) && defined(PIC) # if defined(ARCH_X86_64) && defined(PIC)
# define MANGLE(a) #a"(%%rip)" # define MANGLE(a) #a"(%%rip)"
# elif defined(CONFIG_DARWIN)
# define MANGLE(a) "_" #a
# else # else
# define MANGLE(a) #a # define MANGLE(a) #a
# endif # endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment