Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(167)

Unified Diff: third_party/re2/util/valgrind.cc

Issue 1516543002: Update re2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updated update instructions Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/re2/util/valgrind.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
}
« no previous file with comments | « third_party/re2/util/valgrind.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698