Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue #1023 #1024

Merged
merged 1 commit into from
Aug 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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