diff options
| author | Robert Clausecker <fuz@FreeBSD.org> | 2026-04-19 12:36:34 +0000 |
|---|---|---|
| committer | Robert Clausecker <fuz@FreeBSD.org> | 2026-04-20 20:59:54 +0000 |
| commit | c8c9324c94dfd4eeecbcfe4a1d3daa047420d3e5 (patch) | |
| tree | 3f0f550b51137e90a7d6233755208ba6b2ab9aa0 /include | |
| parent | 1b8e5c02f5c07521129e06ff8ab7c660238fd75c (diff) | |
Diffstat (limited to 'include')
| -rw-r--r-- | include/stdbit.h | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/include/stdbit.h b/include/stdbit.h index a529676bed4b..6b9ea02971b0 100644 --- a/include/stdbit.h +++ b/include/stdbit.h @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2025 Robert Clausecker <fuz@FreeBSD.org> + * Copyright (c) 2025-2026 Robert Clausecker <fuz@FreeBSD.org> * * SPDX-License-Identifier: BSD-2-Clause */ @@ -8,6 +8,26 @@ #define __STDC_VERSION_STDBIT_H__ 202311L #include <sys/cdefs.h> +#include <sys/_types.h> +#include <sys/_stdint.h> + +#ifndef _SIZE_T_DECLARED +typedef __size_t size_t; +#define _SIZE_T_DECLARED +#endif + +#ifndef _INT_LEAST_T_DECLARED +typedef __int_least8_t int_least8_t; +typedef __int_least16_t int_least16_t; +typedef __int_least32_t int_least32_t; +typedef __int_least64_t int_least64_t; + +typedef __uint_least8_t uint_least8_t; +typedef __uint_least16_t uint_least16_t; +typedef __uint_least32_t uint_least32_t; +typedef __uint_least64_t uint_least64_t; +#define _INT_LEAST_T_DECLARED +#endif /* byte order */ #define __STDC_ENDIAN_LITTLE__ __ORDER_LITTLE_ENDIAN__ |
