atomic_int32.cpp 505 B

1234567891011121314151617
  1. /*
  2. * Copyright Andrey Semashev 2016.
  3. * Distributed under the Boost Software License, Version 1.0.
  4. * (See accompanying file LICENSE_1_0.txt or copy at
  5. * http://www.boost.org/LICENSE_1_0.txt)
  6. */
  7. #include <boost/atomic.hpp>
  8. #if !defined(BOOST_ATOMIC_INT32_LOCK_FREE) || (BOOST_ATOMIC_INT32_LOCK_FREE+0) != 2
  9. #error Boost.Log: Native 32-bit atomic operations are required but not supported by Boost.Atomic on the target platform
  10. #endif
  11. int main(int, char*[])
  12. {
  13. return 0;
  14. }