mirror of
https://github.com/taglib/taglib.git
synced 2025-07-14 02:54:27 -04:00
Make use of increment/decrement operators of std::atomic.
This commit is contained in:
@ -46,9 +46,9 @@ endif()
|
||||
check_cxx_source_compiles("
|
||||
#include <atomic>
|
||||
int main() {
|
||||
std::atomic<unsigned int> x;
|
||||
x.fetch_add(1);
|
||||
x.fetch_sub(1);
|
||||
std::atomic_int x;
|
||||
++x;
|
||||
--x;
|
||||
return 0;
|
||||
}
|
||||
" HAVE_STD_ATOMIC)
|
||||
|
Reference in New Issue
Block a user