summaryrefslogtreecommitdiffstats
path: root/mangle.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-07-29 00:22:13 +0200
committerwm4 <wm4@nowhere>2012-07-29 00:22:13 +0200
commit94b7db20bcb82efba04bf5c56fea3f545d547b12 (patch)
tree6dd9264190c2fd835c53d80844785d21830dcc0a /mangle.h
parent46b218ca346478d604061c8989191ad337124a30 (diff)
downloadmpv-94b7db20bcb82efba04bf5c56fea3f545d547b12.tar.bz2
mpv-94b7db20bcb82efba04bf5c56fea3f545d547b12.tar.xz
configure: remove pointless checks for yasm etc.
mplayer doesn't use yasm, as or ranlib. They were only needed to build with internal libav, which is gone. Also, get rid of nm. nm was used to find out how external symbols are mangled. Replace this by a platform check in mangle.h. As far as I know, sane systems don't mangle symbols. Windows prefixes them with an underscore ("_symbol"). I don't know about OSX.
Diffstat (limited to 'mangle.h')
-rw-r--r--mangle.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/mangle.h b/mangle.h
index 64c6f75619..0e37c88d7b 100644
--- a/mangle.h
+++ b/mangle.h
@@ -31,6 +31,12 @@
#define attribute_used
#endif
+#if _WIN32
+#define EXTERN_PREFIX "_"
+#else
+#define EXTERN_PREFIX ""
+#endif
+
#if ARCH_X86_64 && defined(PIC)
#define MANGLE(a) EXTERN_PREFIX #a "(%%rip)"
#else