diff options
| author | CYFS <[email protected]> | 2026-07-07 11:52:14 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-07-07 11:52:14 +0800 |
| commit | ee43eeb68577edeb56d2582d657b31e4e29243fb (patch) | |
| tree | 4a36382d2bbeff2cd6a43e84f0a090ed013e0453 /components/libc | |
| parent | 937be2c97dc69f8dcdc804f56fdad7665547896d (diff) | |
[ci]:add armclang BSP build coverage (#11577)
* ci: add armclang BSP build coverage
* components/libc: avoid armclang errno include recursion
Diffstat (limited to 'components/libc')
| -rw-r--r-- | components/libc/compilers/common/extension/sys/errno.h | 24 |
1 files changed, 23 insertions, 1 deletions
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 <errno.h> +#endif + +#if defined(__ARMCC_VERSION) || defined(__IAR_SYSTEMS_ICC__) #ifndef EPERM #define EPERM (ERROR_BASE_NO + 1) |
