OS/2 workaround

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5288 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2002-03-23 20:56:34 +00:00
parent 0019b9d95b
commit b50bfd4098
1 changed files with 9 additions and 1 deletions

View File

@ -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