mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-19 07:03:32 +08:00
[sys/errno.h] 修复armclang支持问题
This commit is contained in:
parent
4fd4074617
commit
5bb6e86cf5
@ -10,7 +10,7 @@
|
||||
#ifndef _SYS_ERRNO_H
|
||||
#define _SYS_ERRNO_H
|
||||
|
||||
#if defined(__CC_ARM)
|
||||
#if defined(__ARMCC_VERSION)
|
||||
/*
|
||||
defined in armcc/errno.h
|
||||
|
||||
@ -37,7 +37,7 @@ defined in armcc/errno.h
|
||||
#define ERROR_BASE_NO 0
|
||||
#endif
|
||||
|
||||
#if defined(__CC_ARM) || defined(__IAR_SYSTEMS_ICC__)
|
||||
#if defined(__ARMCC_VERSION) || defined(__IAR_SYSTEMS_ICC__)
|
||||
#include <errno.h>
|
||||
#define EPERM (ERROR_BASE_NO + 1)
|
||||
#define ENOENT (ERROR_BASE_NO + 2)
|
||||
|
Loading…
x
Reference in New Issue
Block a user