Skip to content

Commit

Permalink
atomic: add preprocessor definition to force the use of boost.atomic
Browse files Browse the repository at this point in the history
  • Loading branch information
timblechmann committed May 11, 2016
1 parent b690fd6 commit 547f131
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/boost/lockfree/detail/atomic.hpp
Expand Up @@ -51,7 +51,7 @@
#endif // BOOST_LOCKFREE_FORCE_STD_ATOMIC


#if defined(BOOST_LOCKFREE_NO_HDR_ATOMIC)
#if defined(BOOST_LOCKFREE_NO_HDR_ATOMIC) || defined(BOOST_LOCKFREE_FORCE_BOOST_ATOMIC)
#include <boost/atomic.hpp>
#else
#include <atomic>
Expand All @@ -61,7 +61,7 @@ namespace boost {
namespace lockfree {
namespace detail {

#if defined(BOOST_LOCKFREE_NO_HDR_ATOMIC)
#if defined(BOOST_LOCKFREE_NO_HDR_ATOMIC) || defined(BOOST_LOCKFREE_FORCE_BOOST_ATOMIC)
using boost::atomic;
using boost::memory_order_acquire;
using boost::memory_order_consume;
Expand Down

0 comments on commit 547f131

Please sign in to comment.