summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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