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 9f5890332..6640c3da9 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -26651,8 +26651,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 {