diff --git a/linux/xptypes.h b/linux/xptypes.h index 0d8f3800d..1fcff046f 100644 --- a/linux/xptypes.h +++ b/linux/xptypes.h @@ -62,10 +62,10 @@ typedef unsigned long XP_Time; #ifdef DEBUG extern void linux_debugf(char*, ...); -#define XP_DEBUGF linux_debugf +#define XP_DEBUGF(...) linux_debugf(__VA_ARGS__) + #else -extern void p_ignore(char*, ...); -#define XP_DEBUGF if(0)p_ignore +#define XP_DEBUGF(ch,...) #endif #define XP_WARNF XP_DEBUGF diff --git a/wince/xptypes.h b/wince/xptypes.h index fc722ef1f..7336f9ef2 100755 --- a/wince/xptypes.h +++ b/wince/xptypes.h @@ -94,11 +94,11 @@ typedef XP_U32 XP_Time; #define XP_WARNF XP_DEBUGF #ifdef DEBUG -#define XP_DEBUGF wince_debugf -#define XP_LOGF wince_debugf +#define XP_DEBUGF(...) wince_debugf(__VA_ARGS__) +#define XP_LOGF(...) wince_debugf(__VA_ARGS__) #else -#define XP_DEBUGF if(0)p_ignore -#define XP_LOGF if(0)p_ignore +#define XP_DEBUGF(...) +#define XP_LOGF(...) #endif #ifdef CPLUS