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:
ods15 2005-09-30 05:57:59 +00:00
parent ab0f64bb6c
commit a114511c8f
1 changed files with 10 additions and 6 deletions

View File

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