From e502bbe138599a10fe530cb789e3f715a56fd461 Mon Sep 17 00:00:00 2001 From: Tommi Date: Sat, 31 Oct 2015 22:41:43 +0100 Subject: [PATCH] Update webrtc/base/common.h after recent _DEBUG->!NDEBUG change. R=tfarina@chromium.org TBR=tfarina@chromium.org BUG= Review URL: https://codereview.webrtc.org/1410113007 . Cr-Commit-Position: refs/heads/master@{#10470} --- webrtc/base/common.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/webrtc/base/common.h b/webrtc/base/common.h index e615c7669a..67665f2d4c 100644 --- a/webrtc/base/common.h +++ b/webrtc/base/common.h @@ -61,7 +61,11 @@ inline void RtcUnused(const void*) {} ///////////////////////////////////////////////////////////////////////////// #ifndef ENABLE_DEBUG -#define ENABLE_DEBUG _DEBUG +#if !defined(NDEBUG) +#define ENABLE_DEBUG 1 +#else +#define ENABLE_DEBUG 0 +#endif #endif // !defined(ENABLE_DEBUG) // Even for release builds, allow for the override of LogAssert. Though no