From 0aa36e882ede41d922c86c435cc9bc9ad71aad2d Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Fri, 18 Aug 2017 13:19:34 -0400 Subject: [PATCH] remove dependency on quadmath.h --- src/bigfloat.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/bigfloat.cpp b/src/bigfloat.cpp index 1d24a50a3e..c1bfcbbb97 100644 --- a/src/bigfloat.cpp +++ b/src/bigfloat.cpp @@ -10,7 +10,15 @@ #include "buffer.hpp" #include #include -#include + +extern "C" { + __float128 fmodq(__float128 a, __float128 b); + __float128 ceilq(__float128 a); + __float128 floorq(__float128 a); + __float128 strtoflt128 (const char *s, char **sp); + int quadmath_snprintf (char *s, size_t size, const char *format, ...); +} + void bigfloat_init_float(BigFloat *dest, __float128 x) { dest->value = x;