From 2c1077692b7b70f4b573d759c51693bac6e8a49b Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Fri, 24 Dec 2021 07:13:06 -0500 Subject: [rtdef] 将defined(__CC_ARM) || defined(__CLANG_ARM)并为defined(__ARMCC_VERSION) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/rtdef.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/rtdef.h b/include/rtdef.h index 2cf63b6a4c..c22c20beee 100644 --- a/include/rtdef.h +++ b/include/rtdef.h @@ -122,7 +122,7 @@ typedef rt_base_t rt_off_t; /**< Type for offset */ #define RT_UNUSED(x) ((void)x) /* Compiler Related Definitions */ -#if defined(__CC_ARM) || defined(__CLANG_ARM) /* ARM Compiler */ +#if defined(__ARMCC_VERSION) /* ARM Compiler */ #include #define RT_SECTION(x) __attribute__((section(x))) #define RT_USED __attribute__((used)) -- cgit v1.3.1