dev-cpp/tlfloat: Fix build with libc++

Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/46894
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
Sv. Lockal
2026-10-14 23:02:14 +02:00
committed by Alfredo Tupone
parent f27ab9390a
commit 7240102b11
2 changed files with 16 additions and 1 deletions
@@ -0,0 +1,12 @@
Fix build with libc++
Upstream PR: https://github.com/shibatch/tlfloat/pull/6
--- a/src/include/tlfloat/tlfloat.hpp
+++ b/src/include/tlfloat/tlfloat.hpp
@@ -8,6 +8,7 @@
#define __TLFLOAT_HPP_INCLUDED__
#include <cstdio>
+#include <type_traits>
#include <tlfloat/bigint.hpp>
@@ -22,7 +22,10 @@ KEYWORDS="~amd64 ~arm64 ~riscv"
IUSE="test"
RESTRICT="!test? ( test )"
PATCHES=( "${FILESDIR}"/${P}-fPIC.patch )
PATCHES=(
"${FILESDIR}"/${P}-fPIC.patch
"${FILESDIR}"/${P}-libcxx.patch
)
src_configure() {
local mycmakeargs=(