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