From dde0cfabc1cb379d041d1ea70ccefba0103bc98b Mon Sep 17 00:00:00 2001 From: Nick Bolton Date: Sun, 29 Jul 2012 02:10:25 +0000 Subject: [PATCH] fixed: log class using wrong debug macros --- src/lib/base/CLog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/base/CLog.cpp b/src/lib/base/CLog.cpp index a402dbbd..bc49e842 100644 --- a/src/lib/base/CLog.cpp +++ b/src/lib/base/CLog.cpp @@ -46,7 +46,7 @@ static const char* g_priority[] = { static const int g_numPriority = (int)(sizeof(g_priority) / sizeof(g_priority[0])); // the default priority -#if defined(_DEBUG) || defined(DEBUG) +#ifndef NDEBUG static const int g_defaultMaxPriority = kDEBUG; #else static const int g_defaultMaxPriority = kINFO; @@ -176,7 +176,7 @@ CLog::print(const char* file, int line, const char* fmt, ...) char message[2048]; -#if defined(_DEBUG) || defined(DEBUG) +#ifndef NDEBUG struct tm *tm; char tmp[220]; time_t t;