From 7d8f5844bd4c8270f15eafe6c10b89e4217d744d Mon Sep 17 00:00:00 2001 From: Eric House Date: Tue, 11 Mar 2014 19:38:08 -0700 Subject: [PATCH] fix to compile without DEBUG defined --- xwords4/common/dictmgr.c | 4 ++-- xwords4/common/dictnry.h | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/xwords4/common/dictmgr.c b/xwords4/common/dictmgr.c index 5328f724a..b8f51bc10 100644 --- a/xwords4/common/dictmgr.c +++ b/xwords4/common/dictmgr.c @@ -19,9 +19,9 @@ #include /* we'll see how long this can stay cross-platform */ -#include "dictmgr.h" #include "dictnry.h" #include "strutils.h" +#include "dictmgr.h" #ifdef CPLUS extern "C" { @@ -53,7 +53,7 @@ static XP_S16 findFor( DictMgrCtxt* dmgr, const XP_UCHAR* key ); #ifdef DEBUG static void printInOrder( const DictMgrCtxt* dmgr ); #else - printInOrder( dmgr ) +# define printInOrder( dmgr ) #endif #define NOT_FOUND -1 diff --git a/xwords4/common/dictnry.h b/xwords4/common/dictnry.h index 2335a51d4..af96d1599 100644 --- a/xwords4/common/dictnry.h +++ b/xwords4/common/dictnry.h @@ -21,7 +21,9 @@ #ifndef __DICTNRY_H__ #define __DICTNRY_H__ -#define DEBUG_REF 1 +#ifdef DEBUG +# define DEBUG_REF 1 +#endif #include "comtypes.h"