Index: third_party/re2/util/valgrind.cc |
diff --git a/third_party/re2/util/valgrind.cc b/third_party/re2/util/valgrind.cc |
index 46f804b85332ac3b780c07a73cd01d017e3aa49f..19ec22ee1db5a2f32889d96515f579b0811d464a 100644 |
--- a/third_party/re2/util/valgrind.cc |
+++ b/third_party/re2/util/valgrind.cc |
@@ -3,15 +3,17 @@ |
// license that can be found in the LICENSE file. |
#include "util/util.h" |
+#ifndef _WIN32 |
#include "util/valgrind.h" |
+#endif |
namespace re2 { |
-int RunningOnValgrind() { |
+bool RunningOnValgrind() { |
#ifdef RUNNING_ON_VALGRIND |
- return RUNNING_ON_VALGRIND; |
+ return RUNNING_ON_VALGRIND != 0; |
#else |
- return 0; |
+ return false; |
#endif |
} |