Fix nullptr_t usage from std namespace for libstdc++

See #569
This commit is contained in:
Eloston
2018-11-24 01:16:21 +00:00
parent ef20fcba98
commit 918ea7013b
3 changed files with 15 additions and 0 deletions
@@ -8,4 +8,5 @@ debian_buster/system/convertutf.patch
debian_buster/debianization/sandbox.patch
debian_buster/debianization/master-preferences.patch
ungoogled-chromium/linux/fix-nullptr-t-namespace.patch
ungoogled-chromium/linux/manpage.patch
@@ -14,4 +14,5 @@ debian_buster/debianization/sandbox.patch
debian_buster/debianization/master-preferences.patch
ungoogled-chromium/linux/fix-libva1-compatibility.patch
ungoogled-chromium/linux/fix-nullptr-t-namespace.patch
ungoogled-chromium/linux/manpage.patch
@@ -0,0 +1,13 @@
# Fix namespace of nullptr_t for libstdc++
--- a/content/public/test/browser_test_utils.h
+++ b/content/public/test/browser_test_utils.h
@@ -605,7 +605,7 @@ bool operator>(const T& a, const EvalJsR
return b.error.empty() && (JsLiteralHelper<T>::Convert(a) > b.value);
}
-inline bool operator==(nullptr_t a, const EvalJsResult& b) {
+inline bool operator==(std::nullptr_t a, const EvalJsResult& b) {
return b.error.empty() && (base::Value() == b.value);
}