summaryrefslogtreecommitdiff
path: root/include/rtcompiler.h
diff options
context:
space:
mode:
authorkurisaw <[email protected]>2025-02-19 17:37:55 +0800
committerRbb666 <[email protected]>2025-03-10 22:41:59 +0800
commit8fe74725563e24dfe50255182e00e70f376d5619 (patch)
treef8b2a9d79446fc99079473d73201904ca8c1ec91 /include/rtcompiler.h
parentf7f16e0e733ad143a4a715af485f94419a3ec2e6 (diff)
fix: fixed an issue where rt_typeof was not supported in the MDK toolchain
Diffstat (limited to 'include/rtcompiler.h')
-rw-r--r--include/rtcompiler.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/rtcompiler.h b/include/rtcompiler.h
index 121f084ae9..012c85cb60 100644
--- a/include/rtcompiler.h
+++ b/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