diff options
| author | bernard.xiong <[email protected]> | 2010-04-14 00:40:20 +0000 |
|---|---|---|
| committer | bernard.xiong <[email protected]> | 2010-04-14 00:40:20 +0000 |
| commit | 23ea4f1b742ecb794e4ee657bfc1a3db0382bbcd (patch) | |
| tree | 744e290790e9b407d0f6d8919ff77cc9705e705a /include/rtdef.h | |
| parent | 2fcd4bccbdc9ebc00ba4de3d4dd9327b325545bc (diff) | |
add __ICCM16C__ compiler support.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@621 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'include/rtdef.h')
| -rw-r--r-- | include/rtdef.h | 5 |
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 */ |
