From 23ea4f1b742ecb794e4ee657bfc1a3db0382bbcd Mon Sep 17 00:00:00 2001 From: "bernard.xiong" Date: Wed, 14 Apr 2010 00:40:20 +0000 Subject: add __ICCM16C__ compiler support. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@621 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- include/rtdef.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/rtdef.h') 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 + #define SECTION(x) @ x + #define UNUSED + #define rt_inline inline #endif /* event length */ -- cgit v1.3.1