From ee0a50636a12b4a22c1e06fe3a5e82d26d46d9cb Mon Sep 17 00:00:00 2001 From: "Eric J. Korpela" Date: Thu, 22 Mar 2007 00:22:02 +0000 Subject: [PATCH] Fix for cygwin and mingw32 compiles. svn path=/trunk/boinc/; revision=12262 --- lib/diagnostics.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/diagnostics.h b/lib/diagnostics.h index 637d3c2d6d..6171f79dea 100644 --- a/lib/diagnostics.h +++ b/lib/diagnostics.h @@ -149,7 +149,7 @@ extern void boinc_info(const char *pszFormat, ...); #define BOINCASSERT(expr) wxASSERT(expr) #define BOINCTRACE wxLogDebug -#elif defined(_CONSOLE) +#elif defined(_CONSOLE) && !(defined(__MINGW32__) || defined(__CYGWIN32__)) // Microsoft CRT // @@ -162,7 +162,7 @@ extern void boinc_info(const char *pszFormat, ...); #else // _DEBUG #if defined(__MINGW32__) || defined(__CYGWIN32__) -#define BOINCASSERT(expr) +#define BOINCASSERT(expr) assert(expr) #define BOINCTRACE(...) boinc_trace #else // __MINGW32__ #define BOINCASSERT(expr) __noop