Getting following warning in Xcode 8 / Swift 3:
warning: 'OSAtomicCompareAndSwap32Barrier' was deprecated in OS X 10.12:
Use atomic_compare_exchange_strong() from <stdatomic.h> instead
Attempt to use function atomic_compare_exchange_strong in Swift code leads compiler error:
error: use of unresolved identifier 'atomic_compare_exchange_strong'
Importing Darwin or CoreFoundation modules does not solve problem.
What module should I import in order to get symbol for atomic_compare_exchange_strong?
Thank you!