diff options
author | Robin Gareus <robin@gareus.org> | 2019-07-29 04:45:29 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-07-29 04:45:29 +0200 |
commit | 82bdb48dabacd521f93c02b1520aec0db4996bf9 (patch) | |
tree | e6ac0634058f559d26c67acb5bb9ac8fb79f5bc4 /libs/pbd | |
parent | 7b92f54929315654f0a5ac3417c54d5592227870 (diff) |
Partially undo 6d4b94df13 for MSVC and C++98 compat
Diffstat (limited to 'libs/pbd')
-rw-r--r-- | libs/pbd/spinlock.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/pbd/spinlock.cc b/libs/pbd/spinlock.cc index 0e53b194b9..ff6fe51b1b 100644 --- a/libs/pbd/spinlock.cc +++ b/libs/pbd/spinlock.cc @@ -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 |