From 62df42c42531bd1ef1b2298884139e63262fa6d5 Mon Sep 17 00:00:00 2001 From: dholland Date: Mon, 12 Mar 2018 01:29:44 +0000 Subject: Use std::abs instead of just abs to fix clang build. --- converters/libqxp/distinfo | 3 ++- .../libqxp/patches/patch-src_lib_QXPBlockParser.cpp | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 converters/libqxp/patches/patch-src_lib_QXPBlockParser.cpp diff --git a/converters/libqxp/distinfo b/converters/libqxp/distinfo index 462f6ce5dfa..d8fe68ec6c3 100644 --- a/converters/libqxp/distinfo +++ b/converters/libqxp/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.1 2018/02/03 00:06:29 ryoon Exp $ +$NetBSD: distinfo,v 1.2 2018/03/12 01:29:44 dholland Exp $ SHA1 (libqxp-0.0.1.tar.xz) = a5963474afcc8e7b0eb352754325c21e1a1f5e18 RMD160 (libqxp-0.0.1.tar.xz) = c1d8d8ecd06445ec5ad9f8d18ec86e31d485879b SHA512 (libqxp-0.0.1.tar.xz) = a03a9ada658a92f4d985cad91d467b3916334c74dc26c1e4de89e3929e0135ca0e9c7e7e18ce616ef56a67863ec19c2638494400785849017f9a4776df07c607 Size (libqxp-0.0.1.tar.xz) = 340184 bytes +SHA1 (patch-src_lib_QXPBlockParser.cpp) = d2878371963ad704092080f291c6e3a4de100628 diff --git a/converters/libqxp/patches/patch-src_lib_QXPBlockParser.cpp b/converters/libqxp/patches/patch-src_lib_QXPBlockParser.cpp new file mode 100644 index 00000000000..65eb66dbc5a --- /dev/null +++ b/converters/libqxp/patches/patch-src_lib_QXPBlockParser.cpp @@ -0,0 +1,15 @@ +$NetBSD: patch-src_lib_QXPBlockParser.cpp,v 1.1 2018/03/12 01:29:44 dholland Exp $ + +Fix clang build. (this doesn't fail on gcc; don't ask me why) + +--- src/lib/QXPBlockParser.cpp~ 2017-12-31 15:11:37.000000000 +0000 ++++ src/lib/QXPBlockParser.cpp +@@ -108,7 +108,7 @@ std::shared_ptr QXPBloc + + const int32_t nextVal = bigIdx ? readS32(m_input, be) : readS16(m_input, be); + isBig = nextVal < 0; +- next = abs(nextVal); ++ next = std::abs(nextVal); + } + } + catch (...) -- cgit v1.2.3