Fix ATOMIC_<TYPE>_LOCK_FREE macros on Windows.
authorEric Fiselier <eric@efcs.ca>
Thu, 20 Apr 2017 23:22:46 +0000 (23:22 +0000)
committerEric Fiselier <eric@efcs.ca>
Thu, 20 Apr 2017 23:22:46 +0000 (23:22 +0000)
commitc41122546238c20729b870b4668c31c24a22f745
treea9334a747f54c54a0fc47206b6db11bea8308a17
parent56be04284f84080ccc6026ad357a996123ce5db9
Fix ATOMIC_<TYPE>_LOCK_FREE macros on Windows.

Previously the ATOMIC_<TYPE>_LOCK_FREE macros were implemented
using __GCC_ATOMIC_<TYPE>_LOCK_FREE but GCC specific macros
are defined when -fms-compatibility is specified.

To avoid this Libc++ now tries to use the newly added
__CLANG_ATOMIC_<TYPE>_LOCK_FREE macros instead, and only falls
back to the GCC versions when the Clang ones aren't available.

llvm-svn: 300920
libcxx/include/atomic