aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFaraz Vahedi <kfv@kfv.io>2026-05-01 01:01:20 +0000
committerWarner Losh <imp@FreeBSD.org>2026-06-20 00:23:28 +0000
commit85becdacf3b043849b240eb1b1b2cde63add0690 (patch)
tree58259f1efef848ffe6a39aee8583aa39206abb8a
parent4b146555d39d9fb826bf4524df9e00eb8dad2bfe (diff)
libc: Add atomics C23 feature test macro
Signed-off-by: Faraz Vahedi <kfv@kfv.io> Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/2185
-rw-r--r--sys/sys/stdatomic.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/sys/stdatomic.h b/sys/sys/stdatomic.h
index 67107f47e6b3..c3f9b217519c 100644
--- a/sys/sys/stdatomic.h
+++ b/sys/sys/stdatomic.h
@@ -27,8 +27,8 @@
* SUCH DAMAGE.
*/
-#ifndef _STDATOMIC_H_
-#define _STDATOMIC_H_
+#ifndef __STDC_VERSION_STDATOMIC_H__
+#define __STDC_VERSION_STDATOMIC_H__ 202311L
#include <sys/cdefs.h>
#include <sys/_types.h>
@@ -421,4 +421,4 @@ atomic_flag_clear(volatile atomic_flag *__object)
#undef __bool_locally_defined
#endif
-#endif /* !_STDATOMIC_H_ */
+#endif /* !__STDC_VERSION_STDATOMIC_H__ */