git: e6cab850f131 - stable/15 - libc: Add <setjmp.h> C23 feature test macro
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 31 Oct 2026 10:06:44 UTC
The branch stable/15 has been updated by kfv:
URL: https://cgit.FreeBSD.org/src/commit/?id=e6cab850f13158e42aa26556f07dab90212112c3
commit e6cab850f13158e42aa26556f07dab90212112c3
Author: Faraz Vahedi <kfv@FreeBSD.org>
AuthorDate: 2026-08-24 13:48:08 +0000
Commit: Faraz Vahedi <kfv@FreeBSD.org>
CommitDate: 2026-10-31 10:03:34 +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
(cherry picked from commit 4aeed6e9d2132366fe5d7fa46d47d73be9de263b)
---
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: */