From b50bfd4098fd763cffc0ff9a3b960bdabf907d08 Mon Sep 17 00:00:00 2001 From: arpi Date: Sat, 23 Mar 2002 20:56:34 +0000 Subject: OS/2 workaround git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5288 b3059339-0415-0410-9bf9-f77b7e298cf2 --- mp_msg.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'mp_msg.h') 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 #include @@ -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 -- cgit v1.2.3