diff options
| author | Faraz Vahedi <kfv@FreeBSD.org> | 2026-08-04 12:43:57 +0000 |
|---|---|---|
| committer | Faraz Vahedi <kfv@FreeBSD.org> | 2026-08-13 09:41:25 +0000 |
| commit | 1f09e354297ce571353210c23e50ef6fc19ce382 (patch) | |
| tree | 1960b5958fea5cc98b55e8e2ff52898588cbfb5b /include/limits.h | |
| parent | 7858a57baa2f2efc4cfbd61303efb7e72ec43194 (diff) | |
sys/limits.h: Add BOOL_MAX, BITINT_MAXWIDTH, and C23 feature test macro
Add BOOL_MAX and BITINT_MAXWIDTH macros for C23 compliance, and
define the __STDC_VERSION_LIMITS_H__ feature test macro now that
the header fully conforms to C23.
Reviewed by: fuz
Approved by: fuz (mentor)
MFC after: 1 month
Pull Request: https://github.com/freebsd/freebsd-src/pull/2352
Diffstat (limited to 'include/limits.h')
| -rw-r--r-- | include/limits.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/limits.h b/include/limits.h index 2b75b94cb513..7b316e6e905d 100644 --- a/include/limits.h +++ b/include/limits.h @@ -29,8 +29,8 @@ * SUCH DAMAGE. */ -#ifndef _LIMITS_H_ -#define _LIMITS_H_ +#ifndef __STDC_VERSION_LIMITS_H__ +#define __STDC_VERSION_LIMITS_H__ 202311L #include <sys/cdefs.h> @@ -148,4 +148,4 @@ #include <sys/syslimits.h> #endif -#endif /* !_LIMITS_H_ */ +#endif /* !__STDC_VERSION_LIMITS_H__ */ |
