diff options
Diffstat (limited to 'libstdc++-v3/include/std/numbers')
-rw-r--r-- | libstdc++-v3/include/std/numbers | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libstdc++-v3/include/std/numbers b/libstdc++-v3/include/std/numbers index d7d9e81..ee717cc 100644 --- a/libstdc++-v3/include/std/numbers +++ b/libstdc++-v3/include/std/numbers @@ -31,7 +31,10 @@ #pragma GCC system_header -#if __cplusplus > 201703L +#define __glibcxx_want_math_constants +#include <bits/version.h> + +#ifdef __cpp_lib_math_constants // C++ >= 20 #include <type_traits> @@ -47,7 +50,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION /// Namespace for mathematical constants namespace numbers { -#define __cpp_lib_math_constants 201907L /// @cond undocumented template<typename _Tp> @@ -230,5 +232,5 @@ __glibcxx_numbers (__float128, Q); _GLIBCXX_END_NAMESPACE_VERSION } // namespace std -#endif // C++20 +#endif // __cpp_lib_math_constants #endif // _GLIBCXX_NUMBERS |