Partially undo 6d4b94df13 for MSVC and C++98 compat

This commit is contained in:
Robin Gareus 2019-07-29 04:45:29 +02:00
parent 7b92f54929
commit 82bdb48dab
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -36,7 +36,8 @@ spinlock_t::spinlock_t ()
#else
/* default C++ assign struct's first member */
{
l = BOOST_DETAIL_SPINLOCK_INIT;
boost::detail::spinlock init = BOOST_DETAIL_SPINLOCK_INIT;
std::memcpy (&l, &init, sizeof (init));
}
#endif