Eric Fiselier 4b2c8f75a1 Add __CLANG_ATOMIC_<TYPE>_LOCK_FREE macros for use in MSVC compatibility mode.
Summary:
Libc++ currently implements the `ATOMIC_<TYPE>_LOCK_FREE` macros using the `__GCC_ATOMIC_<TYPE>_LOCK_FREE` macros. However these are not available when MSVC compatibility is enabled even though C11 `_Atomic` is.  This prevents libc++ from correctly implementing `ATOMIC_<TYPE>_LOCK_FREE`.

This patch adds an alternative spelling `__CLANG_ATOMIC_<TYPE>_LOCK_FREE` that is enabled with `-fms-compatibility`.

Reviewers: rsmith, aaron.ballman, majnemer, zturner, compnerd, jfb, rnk

Reviewed By: rsmith

Subscribers: BillyONeal, smeenai, jfb, cfe-commits, dschuff

Differential Revision: https://reviews.llvm.org/D32265

llvm-svn: 300914
2017-04-20 22:53:57 +00:00
..
2014-10-27 12:37:26 +00:00
2014-10-27 12:37:26 +00:00
2014-10-27 12:37:26 +00:00
2014-08-13 19:18:20 +00:00
2014-10-02 20:53:50 +00:00
2017-01-31 02:23:02 +00:00
2015-10-08 06:31:22 +00:00
2015-01-28 14:48:39 +00:00
2016-07-14 22:22:58 +00:00
2014-01-16 02:37:08 +00:00
2017-04-18 14:33:39 +00:00
2015-09-17 20:55:33 +00:00
2015-09-17 20:55:33 +00:00