summaryrefslogtreecommitdiff
path: root/Build/source/libs/harfbuzz/TLpatches/0001-Fix-harfbuzz-4.4.1-for-older-g.patch
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/libs/harfbuzz/TLpatches/0001-Fix-harfbuzz-4.4.1-for-older-g.patch')
-rw-r--r--Build/source/libs/harfbuzz/TLpatches/0001-Fix-harfbuzz-4.4.1-for-older-g.patch52
1 files changed, 52 insertions, 0 deletions
diff --git a/Build/source/libs/harfbuzz/TLpatches/0001-Fix-harfbuzz-4.4.1-for-older-g.patch b/Build/source/libs/harfbuzz/TLpatches/0001-Fix-harfbuzz-4.4.1-for-older-g.patch
new file mode 100644
index 00000000000..ed778de2df6
--- /dev/null
+++ b/Build/source/libs/harfbuzz/TLpatches/0001-Fix-harfbuzz-4.4.1-for-older-g.patch
@@ -0,0 +1,52 @@
+From d4005a1970a82222198d0a106ee54a71707d059b Mon Sep 17 00:00:00 2001
+From: Andreas Scherer <andreas_github@freenet.de>
+Date: Sun, 17 Jul 2022 19:46:50 +0200
+Subject: [PATCH 1/2] Fix harfbuzz 4.4.1 for older g++.
+
+---
+ libs/harfbuzz/harfbuzz-src/src/hb-cplusplus.hh | 15 +++++++++------
+ 1 file changed, 9 insertions(+), 6 deletions(-)
+
+diff --git a/libs/harfbuzz/harfbuzz-src/src/hb-cplusplus.hh b/libs/harfbuzz/harfbuzz-src/src/hb-cplusplus.hh
+index 86d045208..c79d15506 100644
+--- a/libs/harfbuzz/harfbuzz-src/src/hb-cplusplus.hh
++++ b/libs/harfbuzz/harfbuzz-src/src/hb-cplusplus.hh
+@@ -166,26 +166,29 @@ HB_DEFINE_VTABLE (unicode_funcs);
+
+ } // namespace hb
+
++namespace std {
++
+ template<typename T>
+-struct std::hash<hb::shared_ptr<T>>
++struct hash<hb::shared_ptr<T>>
+ {
+- std::size_t operator()(const hb::shared_ptr<T>& v) const noexcept
++ size_t operator()(const hb::shared_ptr<T>& v) const noexcept
+ {
+- std::size_t h = std::hash<decltype (v.get ())>{}(v.get ());
++ size_t h = hash<decltype (v.get ())>{}(v.get ());
+ return h;
+ }
+ };
+
+ template<typename T>
+-struct std::hash<hb::unique_ptr<T>>
++struct hash<hb::unique_ptr<T>>
+ {
+- std::size_t operator()(const hb::unique_ptr<T>& v) const noexcept
++ size_t operator()(const hb::unique_ptr<T>& v) const noexcept
+ {
+- std::size_t h = std::hash<decltype (v.get ())>{}(v.get ());
++ size_t h = hash<decltype (v.get ())>{}(v.get ());
+ return h;
+ }
+ };
+
++} // namespace std
+
+ #endif /* __cplusplus */
+
+--
+2.37.1
+