소스 검색

[rtdef] 将defined(__CC_ARM) || defined(__CLANG_ARM)并为defined(__ARMCC_VERSION)

Meco Man 3 년 전
부모
커밋
2c1077692b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      include/rtdef.h

+ 1 - 1
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 <stdarg.h>
     #define RT_SECTION(x)               __attribute__((section(x)))
     #define RT_USED                     __attribute__((used))