summaryrefslogtreecommitdiff
path: root/include/rtdef.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/rtdef.h')
-rw-r--r--include/rtdef.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/rtdef.h b/include/rtdef.h
index d3868ae8d3..8307ff666c 100644
--- a/include/rtdef.h
+++ b/include/rtdef.h
@@ -91,6 +91,11 @@ typedef rt_uint32_t rt_off_t; /* Type for offset. */
#define UNUSED __attribute__((unused))
#define ALIGN(n) __attribute__((aligned(n)))
#define rt_inline static __inline
+#elif defined (__ICCM16C__) /* for IAR EW M16C Compiler */
+ #include <stdarg.h>
+ #define SECTION(x) @ x
+ #define UNUSED
+ #define rt_inline inline
#endif
/* event length */