diff --git a/include/nlohmann/detail/conversions/to_chars.hpp b/include/nlohmann/detail/conversions/to_chars.hpp index c0945ab9e..52342db40 100644 --- a/include/nlohmann/detail/conversions/to_chars.hpp +++ b/include/nlohmann/detail/conversions/to_chars.hpp @@ -308,8 +308,8 @@ boundaries compute_boundaries(FloatType value) // // -e <= 60 or e >= -60 := alpha -constexpr int kAlpha = -60; -constexpr int kGamma = -32; +JSON_INLINE_VARIABLE constexpr int kAlpha = -60; +JSON_INLINE_VARIABLE constexpr int kGamma = -32; struct cached_power // c = f * 2^e ~= 10^k { diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index e56ebfbad..b7d344b72 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -24445,8 +24445,8 @@ boundaries compute_boundaries(FloatType value) // // -e <= 60 or e >= -60 := alpha -constexpr int kAlpha = -60; -constexpr int kGamma = -32; +JSON_INLINE_VARIABLE constexpr int kAlpha = -60; +JSON_INLINE_VARIABLE constexpr int kGamma = -32; struct cached_power // c = f * 2^e ~= 10^k {