Changed from gcc extension to C99 varargs macros

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@576 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Björn Stenberg 2002-05-14 13:16:28 +00:00
parent 28bdaca814
commit e6564e2005

View file

@ -23,12 +23,11 @@ extern void debugf(char* fmt,...);
#ifdef __GNUC__
/* GCC handles ellipses in macros, which
means we can avoid the call completely */
/* */
#ifdef DEBUG
#define DEBUGF(fmt,args...) debugf(fmt, ## args)
#define DEBUGF(...) debugf(__VA_ARGS__)
#else
#define DEBUGF(fmt,args...)
#define DEBUGF(...)
#endif
#else