From ee43eeb68577edeb56d2582d657b31e4e29243fb Mon Sep 17 00:00:00 2001 From: CYFS <2805686936@qq.com> Date: Tue, 7 Jul 2026 11:52:14 +0800 Subject: [ci]:add armclang BSP build coverage (#11577) * ci: add armclang BSP build coverage * components/libc: avoid armclang errno include recursion --- .../libc/compilers/common/extension/sys/errno.h | 24 +++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'components/libc/compilers') diff --git a/components/libc/compilers/common/extension/sys/errno.h b/components/libc/compilers/common/extension/sys/errno.h index 6c6727ca84..20ac628e46 100644 --- a/components/libc/compilers/common/extension/sys/errno.h +++ b/components/libc/compilers/common/extension/sys/errno.h @@ -38,8 +38,30 @@ defined in armcc/errno.h #define ERROR_BASE_NO 0 #endif -#if defined(__ARMCC_VERSION) || defined(__IAR_SYSTEMS_ICC__) +#if defined(__ARMCC_VERSION) +#ifndef EDOM +#define EDOM 1 +#endif +#ifndef ERANGE +#define ERANGE 2 +#endif +#ifndef ESIGNUM +#define ESIGNUM 3 +#endif +#ifndef EILSEQ +#define EILSEQ 4 +#endif +#ifndef EINVAL +#define EINVAL 5 +#endif +#ifndef ENOMEM +#define ENOMEM 6 +#endif +#elif defined(__IAR_SYSTEMS_ICC__) #include +#endif + +#if defined(__ARMCC_VERSION) || defined(__IAR_SYSTEMS_ICC__) #ifndef EPERM #define EPERM (ERROR_BASE_NO + 1) -- cgit v1.3.1