mirror of
https://github.com/mpv-player/mpv
synced 2025-01-16 22:37:28 +01:00
1000l
gcc 2.95 only works with this kind of define, instead of the C99 one. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16622 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
ab0f64bb6c
commit
a114511c8f
16
mp_msg.h
16
mp_msg.h
@ -115,16 +115,20 @@ int mp_msg_test(int mod, int lev);
|
||||
|
||||
#ifdef __GNUC__
|
||||
void mp_msg(int mod, int lev, const char *format, ... ) __attribute__ ((format (printf, 3, 4)));
|
||||
# ifdef MP_DEBUG
|
||||
# define mp_dbg(mod,lev, args... ) mp_msg(mod, lev, ## args )
|
||||
# else
|
||||
# define mp_dbg(mod,lev, args... ) /* only usefull for developers */
|
||||
# endif
|
||||
#else // not GNU C
|
||||
void mp_msg(int mod, int lev, const char *format, ... );
|
||||
# ifdef MP_DEBUG
|
||||
# define mp_dbg(mod,lev, ... ) mp_msg(mod, lev, __VA_ARGS__)
|
||||
# else
|
||||
# define mp_dbg(mod,lev, ... ) /* only usefull for developers */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef MP_DEBUG
|
||||
#define mp_dbg(mod,lev, ... ) mp_msg(mod, lev, __VA_ARGS__)
|
||||
#else
|
||||
// these messages are only usefull for developers, disable them
|
||||
#define mp_dbg(mod,lev, ... )
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user