summaryrefslogtreecommitdiffstats
path: root/mp_msg.h
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-03-23 20:56:34 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-03-23 20:56:34 +0000
commitb50bfd4098fd763cffc0ff9a3b960bdabf907d08 (patch)
tree1281849ecbfd90abe1f67c77c6b427b55197bb15 /mp_msg.h
parent0019b9d95bfe4aa710511e0dbe60e6a7a3a19e92 (diff)
downloadmpv-b50bfd4098fd763cffc0ff9a3b960bdabf907d08.tar.bz2
mpv-b50bfd4098fd763cffc0ff9a3b960bdabf907d08.tar.xz
OS/2 workaround
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5288 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mp_msg.h')
-rw-r--r--mp_msg.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/mp_msg.h b/mp_msg.h
index 8f1877c768..fa6773e653 100644
--- a/mp_msg.h
+++ b/mp_msg.h
@@ -70,10 +70,15 @@ extern int verbose; // defined in mplayer.c
void mp_msg_init();
void mp_msg_set_level(int verbose);
-void mp_msg_c( int x, const char *format, ... );
#include "config.h"
+#ifdef TARGET_OS2
+// va_start/vsnprintf seems to be broken under OS2 :(
+#define mp_msg(mod,lev, fmt, args... ) do{if(lev<=mp_msg_levels[mod]) printf( fmt, ## args );}while(0)
+#define mp_dbg(mod,lev, args... )
+#else
+
#ifdef USE_I18N
#include <libintl.h>
#include <locale.h>
@@ -82,6 +87,8 @@ void mp_msg_c( int x, const char *format, ... );
#define mp_gettext(String) String
#endif
+void mp_msg_c( int x, const char *format, ... );
+
#ifdef __GNUC__
#define mp_msg(mod,lev, args... ) mp_msg_c((mod<<8)|lev, ## args )
@@ -103,3 +110,4 @@ void mp_msg_c( int x, const char *format, ... );
#endif
#endif
+#endif