Use __atomic_exchange_n instead of Clang's __sync_swap

Also remove an extra extern "C" from a global variable redeclaration.
This allows building libcxxabi with GCC on my system.

Reviewers: majnemer

Differential Revision: http://reviews.llvm.org/D5604

git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@219012 91177308-0d34-0410-b5e6-96231b3b80d8
2 files changed
tree: a020ac68153c5d3652b05fbab5e8124c28f66641
  1. cmake/
  2. include/
  3. lib/
  4. src/
  5. test/
  6. www/
  7. CMakeLists.txt
  8. CREDITS.TXT
  9. LICENSE.TXT