Bläddra i källkod

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

kurisaw 2 månader sedan
förälder
incheckning
ea31985b32
1 ändrade filer med 1 tillägg och 1 borttagningar
  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