From d1bf72fe4b3c5d13be517696306aec94b88df9d0 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Wed, 20 Sep 2023 10:33:24 +0000 Subject: automatic import of libe-book --- 0001-fix-gcc10-build.patch | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 0001-fix-gcc10-build.patch (limited to '0001-fix-gcc10-build.patch') diff --git a/0001-fix-gcc10-build.patch b/0001-fix-gcc10-build.patch new file mode 100644 index 0000000..26ab717 --- /dev/null +++ b/0001-fix-gcc10-build.patch @@ -0,0 +1,25 @@ +From aae4ac9a2f984271089a23ca534971eaec1894bd Mon Sep 17 00:00:00 2001 +From: wangjunqiang +Date: Sat, 3 Sep 2022 10:02:32 +0800 +Subject: [PATCH] fix gcc10 build + +--- + src/lib/EBOOKCharsetConverter.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/lib/EBOOKCharsetConverter.cpp b/src/lib/EBOOKCharsetConverter.cpp +index 0d85fa3..c9f8be0 100644 +--- a/src/lib/EBOOKCharsetConverter.cpp ++++ b/src/lib/EBOOKCharsetConverter.cpp +@@ -124,7 +124,7 @@ bool EBOOKCharsetConverter::convertBytes(const char *const in, const unsigned le + m_converterToUTF8.get(), m_converterToUnicode.get(), + &outText, outText + out.size(), &inText, inText + length, + nullptr, nullptr, nullptr, nullptr, +- TRUE, TRUE, &status) ++ true, true, &status) + ; + if (status==U_BUFFER_OVERFLOW_ERROR) + { +-- +2.7.4 + -- cgit v1.2.3