mirror of
https://github.com/boostorg/log.git
synced 2026-01-19 16:32:09 +00:00
Only include capabilities.hpp to test whether native atomic int32 is supported. Also added a dependency on Boost.Atomic, which may be needed in modular builds.
18 lines
516 B
C++
18 lines
516 B
C++
/*
|
|
* Copyright Andrey Semashev 2016.
|
|
* Distributed under the Boost Software License, Version 1.0.
|
|
* (See accompanying file LICENSE_1_0.txt or copy at
|
|
* http://www.boost.org/LICENSE_1_0.txt)
|
|
*/
|
|
|
|
#include <boost/atomic/capabilities.hpp>
|
|
|
|
#if !defined(BOOST_ATOMIC_INT32_LOCK_FREE) || (BOOST_ATOMIC_INT32_LOCK_FREE != 2)
|
|
#error Boost.Log: Native 32-bit atomic operations are required but not supported by Boost.Atomic on the target platform
|
|
#endif
|
|
|
|
int main(int, char*[])
|
|
{
|
|
return 0;
|
|
}
|