Index: webrtc/base/stringutils.cc |
diff --git a/webrtc/base/stringutils.cc b/webrtc/base/stringutils.cc |
index 48830e42338b4d4cf5660de53380a0e6fb3cc888..9580253d1b2f56e6a7e4a166720301d34217ca6e 100644 |
--- a/webrtc/base/stringutils.cc |
+++ b/webrtc/base/stringutils.cc |
@@ -77,7 +77,7 @@ |
} else if (srclen >= buflen) { |
srclen = buflen - 1; |
} |
-#if RTC_DCHECK_IS_ON |
+#if !defined(NDEBUG) |
// Double check that characters are not UTF-8 |
for (size_t pos = 0; pos < srclen; ++pos) |
RTC_DCHECK_LT(static_cast<unsigned char>(source[pos]), 128); |