mirror of
https://github.com/fastfloat/fast_float.git
synced 2025-12-06 16:56:57 +08:00
Fix -Wundef warnings seen in gcc 4.8 and 4.9
This commit is contained in:
parent
96067ad107
commit
3e9dc96eb4
@ -8,7 +8,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Testing for https://wg21.link/N3652, adopted in C++14
|
// Testing for https://wg21.link/N3652, adopted in C++14
|
||||||
#if __cpp_constexpr >= 201304
|
#if defined(__cpp_constexpr) && __cpp_constexpr >= 201304
|
||||||
#define FASTFLOAT_CONSTEXPR14 constexpr
|
#define FASTFLOAT_CONSTEXPR14 constexpr
|
||||||
#else
|
#else
|
||||||
#define FASTFLOAT_CONSTEXPR14
|
#define FASTFLOAT_CONSTEXPR14
|
||||||
@ -29,6 +29,7 @@
|
|||||||
|
|
||||||
// Testing for relevant C++20 constexpr library features
|
// Testing for relevant C++20 constexpr library features
|
||||||
#if FASTFLOAT_HAS_IS_CONSTANT_EVALUATED && FASTFLOAT_HAS_BIT_CAST && \
|
#if FASTFLOAT_HAS_IS_CONSTANT_EVALUATED && FASTFLOAT_HAS_BIT_CAST && \
|
||||||
|
defined(__cpp_lib_constexpr_algorithms) && \
|
||||||
__cpp_lib_constexpr_algorithms >= 201806L /*For std::copy and std::fill*/
|
__cpp_lib_constexpr_algorithms >= 201806L /*For std::copy and std::fill*/
|
||||||
#define FASTFLOAT_CONSTEXPR20 constexpr
|
#define FASTFLOAT_CONSTEXPR20 constexpr
|
||||||
#define FASTFLOAT_IS_CONSTEXPR 1
|
#define FASTFLOAT_IS_CONSTEXPR 1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user