Просмотр исходного кода

Merge pull request #4505 from CraztTnspt/master

[toolchain] fix TASKING toolchain attributes .
Bernard Xiong 4 лет назад
Родитель
Сommit
e4b505af23
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      include/rtdef.h

+ 1 - 1
include/rtdef.h

@@ -198,7 +198,7 @@ typedef rt_base_t                       rt_off_t;       /**< Type for offset */
     #define RT_UNUSED                   __attribute__((unused))
     #define RT_USED                     __attribute__((used, protect))
     #define PRAGMA(x)                   _Pragma(#x)
-    #define ALIGN(n)                    __attribute__((aligned(n)))
+    #define ALIGN(n)                    __attribute__((__align(n)))
     #define RT_WEAK                     __attribute__((weak))
     #define rt_inline                   static inline
     #define RTT_API