rapidjson: apply upstream patch needed for octave

This commit is contained in:
Gonzalo Tornaría 2022-11-21 23:12:25 -03:00 committed by Piraty
parent acc4dc46d8
commit 0464bd6240
2 changed files with 14 additions and 1 deletions

View File

@ -0,0 +1,13 @@
See: https://github.com/Tencent/rapidjson/pull/909
--- a/include/rapidjson/prettywriter.h
+++ b/include/rapidjson/prettywriter.h
@@ -47,7 +47,7 @@ enum PrettyFormatOptions {
template<typename OutputStream, typename SourceEncoding = UTF8<>, typename TargetEncoding = UTF8<>, typename StackAllocator = CrtAllocator, unsigned writeFlags = kWriteDefaultFlags>
class PrettyWriter : public Writer<OutputStream, SourceEncoding, TargetEncoding, StackAllocator, writeFlags> {
public:
- typedef Writer<OutputStream, SourceEncoding, TargetEncoding, StackAllocator> Base;
+ typedef Writer<OutputStream, SourceEncoding, TargetEncoding, StackAllocator, writeFlags> Base;
typedef typename Base::Ch Ch;
//! Constructor

View File

@ -1,7 +1,7 @@
# Template file for 'rapidjson'
pkgname=rapidjson
version=1.1.0
revision=4
revision=5
build_style=cmake
short_desc="Fast JSON parser/generator for C++ with both SAX/DOM style API"
maintainer="Alexander Egorenkov <egorenar-dev@posteo.net>"