From 643679edee50e2680ac5ed323fb53cb26413cbe3 Mon Sep 17 00:00:00 2001 From: Christoph von Wittich Date: Mon, 17 Oct 2005 13:57:40 +0000 Subject: [PATCH] only define DPRINT macro if the compiler can handle __VA_ARGS__ reduces Warnings when compiling with MSVC svn path=/trunk/; revision=18520 --- reactos/include/reactos/debug.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/reactos/include/reactos/debug.h b/reactos/include/reactos/debug.h index 369a945e2c3..9dc594e3f9e 100644 --- a/reactos/include/reactos/debug.h +++ b/reactos/include/reactos/debug.h @@ -61,8 +61,9 @@ #define CHECKPOINT do { DbgPrint("%s:%d\n",__FILE__,__LINE__); } while(0); #else - - #define DPRINT(...) do { if(0) { DbgPrint(__VA_ARGS__); } } while(0) + #if defined (__STDC__) + #define DPRINT(...) do { if(0) { DbgPrint(__VA_ARGS__); } } while(0) + #endif #define CHECKPOINT #endif @@ -70,8 +71,10 @@ #else /* On non-debug builds, we never show these */ + #if defined (__STDC__) #define DPRINT1(...) do { if(0) { DbgPrint(__VA_ARGS__); } } while(0) #define DPRINT(...) do { if(0) { DbgPrint(__VA_ARGS__); } } while(0) + #endif #define CHECKPOINT1 #define CHECKPOINT #endif -- 2.17.1