From 4eb53db537b5b5c575dc5524f2d443d82e71bd39 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sun, 12 Aug 2018 01:26:59 +0300 Subject: [PATCH] Use intrin.h under clang-cl --- include/boost/smart_ptr/detail/sp_interlocked.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/boost/smart_ptr/detail/sp_interlocked.hpp b/include/boost/smart_ptr/detail/sp_interlocked.hpp index 68ce292..e181b8e 100644 --- a/include/boost/smart_ptr/detail/sp_interlocked.hpp +++ b/include/boost/smart_ptr/detail/sp_interlocked.hpp @@ -42,6 +42,11 @@ # define BOOST_SP_HAS_INTRIN_H +// clang-cl on Windows on VC10+ stdlib +#elif defined( __clang__ ) && defined( _MSC_VER ) && defined( _CPPLIB_VER ) && _CPPLIB_VER >= 520 + +# define BOOST_SP_HAS_INTRIN_H + #endif #if defined( BOOST_USE_WINDOWS_H )