[all-commits] [llvm/llvm-project] e0c314: Headers: tweak inclusion condition for stdatomic.h
Saleem Abdulrasool via All-commits
all-commits at lists.llvm.org
Thu Dec 15 13:51:20 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e0c3142af075e2ef89395dbed5939071345eb622
https://github.com/llvm/llvm-project/commit/e0c3142af075e2ef89395dbed5939071345eb622
Author: Saleem Abdulrasool <compnerd at compnerd.org>
Date: 2022-12-15 (Thu, 15 Dec 2022)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/lib/Headers/stdatomic.h
Log Message:
-----------
Headers: tweak inclusion condition for stdatomic.h
MSVC requires that C++23 be available (_HAS_CXX23) else the entire
content is elided. Conditionalise the inclusion properly so that C/C++
code using stdatomic.h for memory_order_* constants are able to do
so without changing the C++ standard. This repairs builds of Swift and
libdispatch after ba49d39b20cc5358da28af2ac82bd336028780bc.
Differential Revision: https://reviews.llvm.org/D139266
Reviewed By: aaron.ballman, Mordante, fsb4000
More information about the All-commits
mailing list