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: [PATCH] =?UTF-8?q?[rtdef]=20=E5=B0=86defined(=5F=5FCC=5FARM)=20||?= =?UTF-8?q?=20defined(=5F=5FCLANG=5FARM)=E5=B9=B6=E4=B8=BAdefined(=5F=5FAR?= =?UTF-8?q?MCC=5FVERSION)?= 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))