From a9f1407d844cf0783c3a2c4c1e227391ec9057ab Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Sat, 25 Nov 2023 15:38:02 +0300 Subject: [PATCH] Added a sanity check to prevent duplicate definition of BOOST_CORE_HAS_BUILTIN_BIT_CAST. --- include/boost/core/bit.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/core/bit.hpp b/include/boost/core/bit.hpp index 67f7c98..5d24045 100644 --- a/include/boost/core/bit.hpp +++ b/include/boost/core/bit.hpp @@ -52,7 +52,7 @@ # endif #endif -#if defined(BOOST_MSVC) && BOOST_MSVC >= 1926 +#if !defined(BOOST_CORE_HAS_BUILTIN_BIT_CAST) && (defined(BOOST_MSVC) && BOOST_MSVC >= 1926) # define BOOST_CORE_HAS_BUILTIN_BIT_CAST #endif