We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 27222cd + 74483fb commit 6d39825Copy full SHA for 6d39825
clang/lib/Headers/stdatomic.h
@@ -12,8 +12,12 @@
12
13
/* If we're hosted, fall back to the system's stdatomic.h. FreeBSD, for
14
* example, already has a Clang-compatible stdatomic.h header.
15
+ *
16
+ * Exclude the MSVC path as well as the MSVC header as of the 14.31.30818
17
+ * explicitly disallows `stdatomic.h` in the C mode via an `#error`. Fallback
18
+ * to the clang resource header until that is fully supported.
19
*/
-#if __STDC_HOSTED__ && __has_include_next(<stdatomic.h>)
20
+#if __STDC_HOSTED__ && __has_include_next(<stdatomic.h>) && !defined(_MSC_VER)
21
# include_next <stdatomic.h>
22
#else
23
0 commit comments