git: 4aeed6e9d213 - main - libc: Add <setjmp.h> C23 feature test macro
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 24 Aug 2026 13:49:57 UTC
The branch main has been updated by kfv:
URL: https://cgit.FreeBSD.org/src/commit/?id=4aeed6e9d2132366fe5d7fa46d47d73be9de263b
commit 4aeed6e9d2132366fe5d7fa46d47d73be9de263b
Author: Faraz Vahedi <kfv@FreeBSD.org>
AuthorDate: 2026-08-24 13:48:08 +0000
Commit: Faraz Vahedi <kfv@FreeBSD.org>
CommitDate: 2026-08-24 13:48:08 +0000
libc: Add <setjmp.h> C23 feature test macro
Define the __STDC_VERSION_SETJMP_H__ feature test macro as the
header fully conforms to C23.
Reviewed by: fuz
Approved by: fuz (mentor)
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D59135
---
include/setjmp.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/setjmp.h b/include/setjmp.h
index 4739784c7ed2..108b47771160 100644
--- a/include/setjmp.h
+++ b/include/setjmp.h
@@ -37,6 +37,8 @@
#ifndef _SETJMP_H_
#define _SETJMP_H_
+#define __STDC_VERSION_SETJMP_H__ 202311L
+
#include <sys/cdefs.h>
/* The size of the jmp_buf is machine dependent: */