Index: webrtc/base/criticalsection.h |
diff --git a/webrtc/base/criticalsection.h b/webrtc/base/criticalsection.h |
index a0f9a6be814355532b4ea2652caca199832c41a1..bf77e2b78b64f99fc0f7ddf7299ad62d96baff0e 100644 |
--- a/webrtc/base/criticalsection.h |
+++ b/webrtc/base/criticalsection.h |
@@ -12,7 +12,6 @@ |
#define WEBRTC_BASE_CRITICALSECTION_H_ |
#include "webrtc/base/atomicops.h" |
-#include "webrtc/base/checks.h" |
#include "webrtc/base/constructormagic.h" |
#include "webrtc/base/thread_annotations.h" |
#include "webrtc/base/platform_thread_types.h" |
@@ -38,7 +37,11 @@ |
#include <dispatch/dispatch.h> |
#endif |
-#define CS_DEBUG_CHECKS RTC_DCHECK_IS_ON |
+#if (!defined(NDEBUG) || defined(DCHECK_ALWAYS_ON)) |
+#define CS_DEBUG_CHECKS 1 |
+#else |
+#define CS_DEBUG_CHECKS 0 |
+#endif |
#if CS_DEBUG_CHECKS |
#define CS_DEBUG_CODE(x) x |