diff options
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) |
