From e6564e2005d12510b3c4159b049de0b774667cbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Stenberg?= Date: Tue, 14 May 2002 13:16:28 +0000 Subject: [PATCH] Changed from gcc extension to C99 varargs macros git-svn-id: svn://svn.rockbox.org/rockbox/trunk@576 a1c6a512-1295-4272-9138-f99709370657 --- firmware/debug.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/firmware/debug.h b/firmware/debug.h index 0f6b1eed64..f8e6496b04 100644 --- a/firmware/debug.h +++ b/firmware/debug.h @@ -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