From dbdc8d2e3c6e93096c956bf3c952d8ea320edefb Mon Sep 17 00:00:00 2001 From: Matt Borland Date: Mon, 1 May 2023 14:39:38 +0200 Subject: [PATCH] Replace _MSC_VER with BOOST_MSVC --- include/boost/charconv/detail/dragonbox.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/boost/charconv/detail/dragonbox.hpp b/include/boost/charconv/detail/dragonbox.hpp index 54afb82..d15c24e 100644 --- a/include/boost/charconv/detail/dragonbox.hpp +++ b/include/boost/charconv/detail/dragonbox.hpp @@ -484,7 +484,7 @@ using signed_decimal_fp = decimal_fp; // Computed cache entries. //////////////////////////////////////////////////////////////////////////////////////// -#if !(defined(_MSC_VER) && _MSC_VER == 1900) +#if BOOST_MSVC != 1900 template struct cache_holder_ieee754_binary32_impl #else @@ -518,7 +518,7 @@ struct cache_holder_ieee754_binary32 0xb35dbf821ae4f38c, 0xe0352f62a19e306f}; }; -#if defined(BOOST_NO_CXX17_INLINE_VARIABLES) && !(defined(_MSC_VER) && _MSC_VER == 1900) +#if defined(BOOST_NO_CXX17_INLINE_VARIABLES) && BOOST_MSVC != 1900 template constexpr int cache_holder_ieee754_binary32_impl::cache_bits; template constexpr int cache_holder_ieee754_binary32_impl::min_k; @@ -527,11 +527,11 @@ template constexpr typename cache_holder_ieee754_binary32_impl::cach #endif -#if !(defined(_MSC_VER) && _MSC_VER == 1900) +#if BOOST_MSVC != 1900 using cache_holder_ieee754_binary32 = cache_holder_ieee754_binary32_impl; #endif -#if !(defined(_MSC_VER) && _MSC_VER == 1900) +#if BOOST_MSVC != 1900 template struct cache_holder_ieee754_binary64_impl #else @@ -855,7 +855,7 @@ struct cache_holder_ieee754_binary64 {0xf70867153aa2db38, 0xb8cbee4fc66d1ea8}}; }; -#if defined(BOOST_NO_CXX17_INLINE_VARIABLES) && !(defined(_MSC_VER) && _MSC_VER == 1900) +#if defined(BOOST_NO_CXX17_INLINE_VARIABLES) && BOOST_MSVC != 1900 template constexpr int cache_holder_ieee754_binary64_impl::cache_bits; template constexpr int cache_holder_ieee754_binary64_impl::min_k; @@ -864,7 +864,7 @@ template constexpr typename cache_holder_ieee754_binary64_impl::cach #endif -#if !(defined(_MSC_VER) && _MSC_VER == 1900) +#if BOOST_MSVC != 1900 using cache_holder_ieee754_binary64 = cache_holder_ieee754_binary64_impl; #endif