diff options
| author | bernard.xiong <[email protected]> | 2010-04-15 01:41:10 +0000 |
|---|---|---|
| committer | bernard.xiong <[email protected]> | 2010-04-15 01:41:10 +0000 |
| commit | 5195a7fb79b5b1c711377c11f5f5755e3e67b8c3 (patch) | |
| tree | 376eec8d6d3487a43302a6317be6187b89ab9e1e /include | |
| parent | 23ea4f1b742ecb794e4ee657bfc1a3db0382bbcd (diff) | |
change version number
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@622 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'include')
| -rw-r--r-- | include/rtdef.h | 16 | ||||
| -rw-r--r-- | include/rtthread.h | 10 |
2 files changed, 14 insertions, 12 deletions
diff --git a/include/rtdef.h b/include/rtdef.h index 8307ff666c..442f9ecd5d 100644 --- a/include/rtdef.h +++ b/include/rtdef.h @@ -22,8 +22,8 @@ extern "C" { #endif /* RT-Thread version information */ -#define RT_VERSION 3 -#define RT_SUBVERSION 0 +#define RT_VERSION 4L +#define RT_SUBVERSION 0L /* date type defination */ typedef signed char rt_int8_t; @@ -56,12 +56,19 @@ typedef rt_uint32_t rt_off_t; /* Type for offset. */ #define RT_UINT16_MAX 0xffff /* Maxium number of UINT16. */ #define RT_UINT32_MAX 0xffffffff /* Maxium number of UINT32. */ +/* Compiler Related Definitions */ #ifdef __CC_ARM /* ARM Compiler */ #include <stdarg.h> #define SECTION(x) __attribute__((section(x))) #define UNUSED __attribute__((unused)) #define ALIGN(n) __attribute__((aligned(n))) #define rt_inline static __inline + /* module compiling */ + #ifdef RT_USING_MODULE + #define RTT_API __declspec(dllimport) + #else + #define RTT_API __declspec(dllexport) + #endif #elif defined (__ICCARM__) /* for IAR Compiler */ #include <stdarg.h> @@ -69,6 +76,7 @@ typedef rt_uint32_t rt_off_t; /* Type for offset. */ #define UNUSED #define ALIGN(n) #pragma pack(n) #define rt_inline inline + #define RTT_API #elif defined (__GNUC__) /* GNU GCC Compiler */ #ifdef RT_USING_NEWLIB @@ -91,11 +99,15 @@ 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 + #define RTT_API + #elif defined (__ICCM16C__) /* for IAR EW M16C Compiler */ #include <stdarg.h> #define SECTION(x) @ x #define UNUSED #define rt_inline inline + #define RTT_API + #endif /* event length */ diff --git a/include/rtthread.h b/include/rtthread.h index b3d6621e22..152b9556e6 100644 --- a/include/rtthread.h +++ b/include/rtthread.h @@ -27,16 +27,6 @@ extern "C" { #endif -#if defined(__CC_ARM) -#ifdef RT_USING_MODULE -#define RTT_API __declspec(dllimport) -#else -#define RTT_API __declspec(dllexport) -#endif -#elif defined(__GNUC__) -#define RTT_API -#endif - /** * @addtogroup KernelObject */ |
