diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2026-06-21 19:51:14 +0000 |
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2026-06-21 19:51:14 +0000 |
| commit | 4c860db34a1b8cff79e7f0d5184423221613e8e1 (patch) | |
| tree | 3ba3ea97764a842688c6db3d4667d428338c843b | |
| parent | c37839dc7b6a4d5f2c4d5bddda6595782a83dae4 (diff) | |
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
| -rw-r--r-- | sys/sys/stdatomic.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
