From dccaf154fa8cac37bfe9acaa0fc5a4fef058fea8 Mon Sep 17 00:00:00 2001 From: richardbarry Date: Thu, 9 Sep 2010 19:47:24 +0000 Subject: [PATCH] Include pack struct macros for RX architecture. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1088 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- .../ethernet/FreeTCPIP/net/pack_struct_end.h | 20 +++++++++++++++---- .../FreeTCPIP/net/pack_struct_start.h | 17 ++++++++++++++-- 2 files changed, 31 insertions(+), 6 deletions(-) diff --git a/Demo/Common/ethernet/FreeTCPIP/net/pack_struct_end.h b/Demo/Common/ethernet/FreeTCPIP/net/pack_struct_end.h index e92ed3fb5..ed4523e48 100644 --- a/Demo/Common/ethernet/FreeTCPIP/net/pack_struct_end.h +++ b/Demo/Common/ethernet/FreeTCPIP/net/pack_struct_end.h @@ -1,7 +1,19 @@ #ifdef __GNUC__ -__attribute__( (packed) ); + __attribute__( (packed) ); #endif -#ifdef __RENESAS__ -; -#pragma unpack + +#ifdef _SH + #ifdef __RENESAS__ + ; + #pragma unpack + #endif #endif + +#ifdef __RX + #ifdef __RENESAS__ + ; + /* Nothing to do. */ + #endif +#endif + + diff --git a/Demo/Common/ethernet/FreeTCPIP/net/pack_struct_start.h b/Demo/Common/ethernet/FreeTCPIP/net/pack_struct_start.h index 4c08937a5..2281682aa 100644 --- a/Demo/Common/ethernet/FreeTCPIP/net/pack_struct_start.h +++ b/Demo/Common/ethernet/FreeTCPIP/net/pack_struct_start.h @@ -3,6 +3,19 @@ /* Nothing to do here. */ ; #endif -#ifdef __RENESAS__ -#pragma pack 1 + +/* Used by SH2A port. */ +#ifdef _SH + #ifdef __RENESAS__ + #pragma pack 1 + #endif +#endif + + +#ifdef __RX + #ifdef __RENESAS__ + /* Nothing to do. */ + #endif #endif + + -- 2.39.5