From 107922018b6a0a399dbaeb1f87acb465ca8befb5 Mon Sep 17 00:00:00 2001 From: Jeremy Sowden Date: Fri, 7 Jun 2019 09:52:26 +0100 Subject: [PATCH] wmail: only one DEBUG macro is ever defined. --- wmail/src/common.c | 2 +- wmail/src/common.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wmail/src/common.c b/wmail/src/common.c index a4f1736..8887cb2 100644 --- a/wmail/src/common.c +++ b/wmail/src/common.c @@ -42,7 +42,7 @@ #include "common.h" -#if defined(DEBUG) || defined(DEBUG2) || defined(_DEBUG) +#ifdef DEBUG void TRACE( const char *fmt, ... ) { va_list args; diff --git a/wmail/src/common.h b/wmail/src/common.h index 06d38f5..0ef35fe 100644 --- a/wmail/src/common.h +++ b/wmail/src/common.h @@ -76,7 +76,7 @@ void ABORT( const char *fmt, ... ); void WARNING( const char *fmt, ... ); char *MakePathName( const char *dir, const char *file ); -#if defined(DEBUG) || defined(DEBUG2) || defined(_DEBUG) +#ifdef DEBUG void TRACE( const char *fmt, ... ); #define ASSERT( EXPR ) ((void)(EXPR ? 0 : ABORT( "%s(%i): Assertion failed: \"%s\"\n", __FILE__, __LINE__, #EXPR )))