summaryrefslogtreecommitdiffstats
path: root/base/dynamic_annotations.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/dynamic_annotations.cc')
-rw-r--r--base/dynamic_annotations.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/dynamic_annotations.cc b/base/dynamic_annotations.cc
index 2ee0975..b1f4e19 100644
--- a/base/dynamic_annotations.cc
+++ b/base/dynamic_annotations.cc
@@ -59,7 +59,7 @@ extern "C" void AnnotateNoOp(const char *file, int line,
// When running under valgrind, a non-zero value will be returned.
extern "C" int RunningOnValgrind() {
-#if defined(NVALGRIND)
+#if defined(NVALGRIND) || !defined(RUNNING_ON_VALGRIND)
return 0;
#else
return RUNNING_ON_VALGRIND;