Skip to content

Commit

Permalink
Fix issue #1023
Browse files Browse the repository at this point in the history
  • Loading branch information
mborland committed Aug 28, 2023
1 parent 74bb4bc commit 07b78fd
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
8 changes: 6 additions & 2 deletions include/boost/math/concepts/real_concept.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,12 @@
# include <cstdio>
#endif

#if __has_include(<stdfloat>)
# include <stdfloat>
#if defined __has_include
# if __cplusplus > 202002L || _MSVC_LANG > 202002L
# if __has_include (<stdfloat>)
# include <stdfloat>
# endif
# endif
#endif

namespace boost{ namespace math{
Expand Down
10 changes: 5 additions & 5 deletions include/boost/math/tools/config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,11 @@
// libstdc++3 only defines to/from_chars for std::float128_t when one of these defines are set
// otherwise we're right out of luck...
# if defined(_GLIBCXX_LDOUBLE_IS_IEEE_BINARY128) || defined(_GLIBCXX_HAVE_FLOAT128_MATH)
# include <cstring> // std::strlen is used with from_chars
# include <charconv>
# include <stdfloat>
# define BOOST_MATH_USE_CHARCONV_FOR_CONVERSION
#endif
# include <cstring> // std::strlen is used with from_chars
# include <charconv>
# include <stdfloat>
# define BOOST_MATH_USE_CHARCONV_FOR_CONVERSION
# endif
# endif
#endif

Expand Down
4 changes: 3 additions & 1 deletion include/boost/math/tools/promotion.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@
#include <type_traits>

#if defined __has_include
# if __has_include (<stdfloat>)
# if __cplusplus > 202002L || _MSVC_LANG > 202002L
# if __has_include (<stdfloat>)
# include <stdfloat>
# endif
# endif
#endif

Expand Down

0 comments on commit 07b78fd

Please sign in to comment.