summaryrefslogtreecommitdiff
path: root/boost/math/tools/config.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/math/tools/config.hpp')
-rw-r--r--boost/math/tools/config.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/boost/math/tools/config.hpp b/boost/math/tools/config.hpp
index 23cba0c9a9..e88f578db7 100644
--- a/boost/math/tools/config.hpp
+++ b/boost/math/tools/config.hpp
@@ -54,6 +54,14 @@
// Any use of __float128 in program startup code causes a segfault (tested JM 2015, Solaris 11).
# define BOOST_MATH_DISABLE_FLOAT128
#endif
+#ifdef __HAIKU__
+//
+// Not sure what's up with the math detection on Haiku, but linking fails with
+// float128 code enabled, and we don't have an implementation of __expl, so
+// disabling long double functions for now as well.
+# define BOOST_MATH_DISABLE_FLOAT128
+# define BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
+#endif
#if (defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__)) && ((LDBL_MANT_DIG == 106) || (__LDBL_MANT_DIG__ == 106)) && !defined(BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS)
//
// Darwin's rather strange "double double" is rather hard to