git: 4c860db34a1b - main - libc: Fix ATOMIC_VAR_INIT visibility
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 21 Jun 2026 19:51:27 UTC
The branch main has been updated by des:
URL: https://cgit.FreeBSD.org/src/commit/?id=4c860db34a1b8cff79e7f0d5184423221613e8e1
commit 4c860db34a1b8cff79e7f0d5184423221613e8e1
Author: Dag-Erling Smørgrav <des@FreeBSD.org>
AuthorDate: 2026-06-21 19:51:14 +0000
Commit: Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2026-06-21 19:51:14 +0000
libc: Fix ATOMIC_VAR_INIT visibility
Fixes: 28cecfe27964 ("libc: Restrict ATOMIC_VAR_INIT for C23 conformance")
Reviewed by: fuz, imp
Differential Revision: https://reviews.freebsd.org/D57724
---
sys/sys/stdatomic.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/sys/stdatomic.h b/sys/sys/stdatomic.h
index a3d1f2cd4aeb..24be02e247a3 100644
--- a/sys/sys/stdatomic.h
+++ b/sys/sys/stdatomic.h
@@ -86,7 +86,7 @@
* 7.17.2 Initialization.
*/
-#if __ISO_C_VISIBLE < 2023 || defined(__cplusplus)
+#if __BSD_VISIBLE || __ISO_C_VISIBLE < 2023 || defined(__cplusplus)
#if defined(__CLANG_ATOMICS)
#define ATOMIC_VAR_INIT(value) (value)
#else