diff codec-cfg.c @ 17841:73db10d5f2e3

remove mp_msg.c dependency when compiling codec-cfg binary. Fixes MinGW compilation (caused by missing -liconv), this solution seems best to me because of e.g. cross-compilation issues just adding -liconv might cause.
author reimar
date Sun, 12 Mar 2006 23:06:09 +0000
parents 72f3e5e8d2a1
children 3aff7d2edf43
line wrap: on
line diff
--- a/codec-cfg.c	Sun Mar 12 22:29:27 2006 +0000
+++ b/codec-cfg.c	Sun Mar 12 23:06:09 2006 +0000
@@ -26,6 +26,13 @@
 
 #include "config.h"
 #include "mp_msg.h"
+#ifdef CODECS2HTML
+#ifdef __GNUC__
+#define mp_msg(t, l, m, args...) fprintf(stderr, m, ##args)
+#else
+#define mp_msg(t, l, m, ...) fprintf(stderr, m, __VA_ARGS__)
+#endif
+#endif
 
 #include "help_mp.h"