mirror of https://github.com/mpv-player/mpv
Add temporary no-op translation function stubs
This commit is contained in:
parent
91d0d3a082
commit
7394680e4e
|
@ -29,6 +29,7 @@
|
|||
#include "config.h"
|
||||
#include "mp_msg.h"
|
||||
#ifdef CODECS2HTML
|
||||
#define mp_tmsg mp_msg
|
||||
#ifdef __GNUC__
|
||||
#define mp_msg(t, l, m, args...) fprintf(stderr, m, ##args)
|
||||
#else
|
||||
|
|
5
mp_msg.c
5
mp_msg.c
|
@ -223,3 +223,8 @@ void mp_msg(int mod, int lev, const char *format, ... ){
|
|||
fprintf(stream, "%s", tmp);
|
||||
fflush(stream);
|
||||
}
|
||||
|
||||
char *mp_gtext(const char *string)
|
||||
{
|
||||
return string;
|
||||
}
|
||||
|
|
6
mp_msg.h
6
mp_msg.h
|
@ -4,6 +4,9 @@
|
|||
// defined in mplayer.c and mencoder.c
|
||||
extern int verbose;
|
||||
|
||||
/* No-op macro to mark translated strings in the sources */
|
||||
#define _(x) x
|
||||
|
||||
// verbosity elevel:
|
||||
|
||||
/* Only messages level MSGL_FATAL-MSGL_STATUS should be translated,
|
||||
|
@ -111,6 +114,9 @@ int mp_msg_test(int mod, int lev);
|
|||
|
||||
#include "config.h"
|
||||
|
||||
char *mp_gtext(const char *string);
|
||||
#define mp_tmsg mp_msg
|
||||
|
||||
#ifdef __GNUC__
|
||||
void mp_msg(int mod, int lev, const char *format, ... ) __attribute__ ((format (printf, 3, 4)));
|
||||
# ifdef MP_DEBUG
|
||||
|
|
Loading…
Reference in New Issue