mirror of
https://github.com/mpv-player/mpv
synced 2025-01-13 00:06:25 +01:00
OS/2 workaround
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5288 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
0019b9d95b
commit
b50bfd4098
10
mp_msg.h
10
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
|
||||
|
Loading…
Reference in New Issue
Block a user