From: richardbarry Date: Thu, 9 Sep 2010 19:47:24 +0000 (+0000) Subject: Include pack struct macros for RX architecture. X-Git-Tag: V6.1.0~47 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=dccaf154fa8cac37bfe9acaa0fc5a4fef058fea8;p=freertos 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 --- 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 + +