2
0
mirror of https://github.com/boostorg/log.git synced 2026-01-19 16:32:09 +00:00
Files
log/config/atomic-int32/atomic_int32.cpp
Andrey Semashev 1c956799d5 Made configure check for native atomic int32 more lightweight.
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.
2025-05-31 16:05:06 +03:00

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;
}