From be26df3b8014d0321149fb77a218920629cfb3e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Wed, 30 May 2018 09:57:39 +0200 Subject: [PATCH] rapidjson: patch for building with gcc81 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jürgen Buchmüller --- .../patches/0002-gcc81-copy-assignment.patch | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 srcpkgs/rapidjson/patches/0002-gcc81-copy-assignment.patch diff --git a/srcpkgs/rapidjson/patches/0002-gcc81-copy-assignment.patch b/srcpkgs/rapidjson/patches/0002-gcc81-copy-assignment.patch new file mode 100644 index 00000000000..c4ddd8a0a3c --- /dev/null +++ b/srcpkgs/rapidjson/patches/0002-gcc81-copy-assignment.patch @@ -0,0 +1,20 @@ +--- include/rapidjson/document.h 2016-08-25 09:59:05.000000000 +0200 ++++ include/rapidjson/document.h 2018-05-30 09:55:35.028135241 +0200 +@@ -1936,7 +1936,7 @@ + if (count) { + GenericValue* e = static_cast(allocator.Malloc(count * sizeof(GenericValue))); + SetElementsPointer(e); +- std::memcpy(e, values, count * sizeof(GenericValue)); ++ *e = *values; + } + else + SetElementsPointer(0); +@@ -1949,7 +1949,7 @@ + if (count) { + Member* m = static_cast(allocator.Malloc(count * sizeof(Member))); + SetMembersPointer(m); +- std::memcpy(m, members, count * sizeof(Member)); ++ *m = *members; + } + else + SetMembersPointer(0);