浏览代码

fix: fixed an issue where rt_typeof was not supported in the MDK toolchain

kurisaw 2 月之前
父节点
当前提交
ea31985b32
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/rtcompiler.h

+ 1 - 1
include/rtcompiler.h

@@ -22,7 +22,7 @@
 #define rt_packed(declare)          declare
 #endif
 #define rt_weak                     __attribute__((weak))
-#define rt_typeof                   typeof
+#define rt_typeof                   __typeof
 #define rt_noreturn
 #define rt_inline                   static __inline
 #define rt_always_inline            rt_inline