Przeglądaj źródła

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

kurisaw 3 miesięcy temu
rodzic
commit
ea31985b32
1 zmienionych plików z 1 dodań i 1 usunięć
  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