diff options
| author | [email protected] <[email protected]> | 2012-11-01 07:20:41 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2012-11-01 07:20:41 +0000 |
| commit | 5d710e8862190783868e73676882606fe79925f5 (patch) | |
| tree | 967196969c770e5d781b99813269b66b1bc31d14 /components | |
| parent | db58e3350bf17f0b6eab5e2518d6595d7eff59fb (diff) | |
Add MSC compiler in lwIP.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2383 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components')
| -rw-r--r-- | components/net/lwip/src/arch/include/arch/cc.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/components/net/lwip/src/arch/include/arch/cc.h b/components/net/lwip/src/arch/include/arch/cc.h index 74f33303dc..a8b2604291 100644 --- a/components/net/lwip/src/arch/include/arch/cc.h +++ b/components/net/lwip/src/arch/include/arch/cc.h @@ -86,6 +86,11 @@ typedef rt_uint32_t mem_ptr_t; #define PACK_STRUCT_STRUCT __attribute__((packed)) #define PACK_STRUCT_BEGIN #define PACK_STRUCT_END +#elif defined(_MSC_VER) +#define PACK_STRUCT_FIELD(x) x +#define PACK_STRUCT_STRUCT +#define PACK_STRUCT_BEGIN +#define PACK_STRUCT_END #endif void sys_arch_assert(const char* file, int line); |
