Skip to content

Commit

Permalink
fix: define BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS for emscripten
Browse files Browse the repository at this point in the history
  • Loading branch information
NickelWenzel authored Oct 23, 2024
1 parent e690b00 commit a175d98
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion include/boost/math/tools/config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,12 +220,16 @@

#include <boost/math/tools/user.hpp>

#if (defined(__NetBSD__) || defined(__EMSCRIPTEN__)\
#if (defined(__NetBSD__)\
|| (defined(__hppa) && !defined(__OpenBSD__)) || (defined(__NO_LONG_DOUBLE_MATH) && (DBL_MANT_DIG != LDBL_MANT_DIG))) \
&& !defined(BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS)
//# define BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
#endif

#if defined(__EMSCRIPTEN__) && !defined(BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS)
# define BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
#endif

#ifdef __IBMCPP__
//
// For reasons I don't understand, the tests with IMB's compiler all
Expand Down

0 comments on commit a175d98

Please sign in to comment.