[sys/errno.h] 修复armclang支持问题
This commit is contained in:
parent
4fd4074617
commit
5bb6e86cf5
|
@ -10,7 +10,7 @@
|
||||||
#ifndef _SYS_ERRNO_H
|
#ifndef _SYS_ERRNO_H
|
||||||
#define _SYS_ERRNO_H
|
#define _SYS_ERRNO_H
|
||||||
|
|
||||||
#if defined(__CC_ARM)
|
#if defined(__ARMCC_VERSION)
|
||||||
/*
|
/*
|
||||||
defined in armcc/errno.h
|
defined in armcc/errno.h
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ defined in armcc/errno.h
|
||||||
#define ERROR_BASE_NO 0
|
#define ERROR_BASE_NO 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__CC_ARM) || defined(__IAR_SYSTEMS_ICC__)
|
#if defined(__ARMCC_VERSION) || defined(__IAR_SYSTEMS_ICC__)
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#define EPERM (ERROR_BASE_NO + 1)
|
#define EPERM (ERROR_BASE_NO + 1)
|
||||||
#define ENOENT (ERROR_BASE_NO + 2)
|
#define ENOENT (ERROR_BASE_NO + 2)
|
||||||
|
|
Loading…
Reference in New Issue