[PATCH] D23719: [libc++] Use C11 for atomics check

Ben Craig via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 19 10:50:19 PDT 2016


bcraig added a subscriber: bcraig.
bcraig added a comment.

I like the rationale here, but can we avoid pulling in headers at all?
You could test _ _STDC_NO_ATOMICS_ _.  You could also have some code like this...

  _Atomic int x;
  int main() {
    x += 1;
    return x;
  }


https://reviews.llvm.org/D23719





More information about the cfe-commits mailing list