[MPlayer-cvslog] CVS: main mp_msg.h,1.34,1.35
Oded Shimon CVS
syncmail at mplayerhq.hu
Fri Sep 30 07:58:02 CEST 2005
CVS change done by Oded Shimon CVS
Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv14715
Modified Files:
mp_msg.h
Log Message:
1000l
gcc 2.95 only works with this kind of define, instead of the C99 one.
Index: mp_msg.h
===================================================================
RCS file: /cvsroot/mplayer/main/mp_msg.h,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- mp_msg.h 29 Sep 2005 05:21:12 -0000 1.34
+++ mp_msg.h 30 Sep 2005 05:57:59 -0000 1.35
@@ -115,16 +115,20 @@
#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
More information about the MPlayer-cvslog
mailing list