Browse Source

Merge pull request #829 from TanekLiang/iar_unused

Add RT_USED definition for IAR
Bernard Xiong 8 năm trước cách đây
mục cha
commit
5b1aa2a75f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      include/rtdef.h

+ 1 - 1
include/rtdef.h

@@ -110,7 +110,7 @@ typedef rt_base_t                       rt_off_t;       /**< Type for offset */
     #include <stdarg.h>
     #define SECTION(x)                  @ x
     #define RT_UNUSED
-    #define RT_USED
+    #define RT_USED                     __root
     #define PRAGMA(x)                   _Pragma(#x)
     #define ALIGN(n)                    PRAGMA(data_alignment=n)
     #define WEAK                        __weak