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

Unified Diff: third_party/re2/patches/re2-android.patch

Issue 1530113002: Revert of Update re2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/libre2.symbols.darwin ('k') | third_party/re2/patches/re2-libcxx.patch » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/re2/patches/re2-android.patch
diff --git a/third_party/re2/patches/re2-android.patch b/third_party/re2/patches/re2-android.patch
new file mode 100644
index 0000000000000000000000000000000000000000..67e9816fd2ec75d777eba2b834ff70e49af57cab
--- /dev/null
+++ b/third_party/re2/patches/re2-android.patch
@@ -0,0 +1,30 @@
+diff --git a/util/util.h b/util/util.h
+index 17ef824..8f54040 100644
+--- a/util/util.h
++++ b/util/util.h
+@@ -29,6 +29,7 @@
+ #include <utility>
+ #include <set>
+
++#include "build/build_config.h"
+ #include "base/third_party/dynamic_annotations/dynamic_annotations.h"
+
+ // Use std names.
+@@ -45,7 +46,7 @@ using std::sort;
+ using std::swap;
+ using std::make_pair;
+
+-#if defined(__GNUC__) && !defined(USE_CXX0X)
++#if defined(__GNUC__) && !defined(USE_CXX0X) && !defined(OS_ANDROID)
+
+ #include <tr1/unordered_set>
+ using std::tr1::unordered_set;
+@@ -53,7 +54,7 @@ using std::tr1::unordered_set;
+ #else
+
+ #include <unordered_set>
+-#ifdef WIN32
++#if defined(WIN32) || defined(OS_ANDROID)
+ using std::tr1::unordered_set;
+ #else
+ using std::unordered_set;
« no previous file with comments | « third_party/re2/libre2.symbols.darwin ('k') | third_party/re2/patches/re2-libcxx.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698