mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-20 05:21:59 -04:00
Added extra compiler specific structure packing options.
This commit is contained in:
parent
aa2ffbfde5
commit
10edc1088a
|
@ -11,6 +11,9 @@
|
|||
* against negative integers quite easily, and fail in subtle ways.
|
||||
*/
|
||||
PACK_STRUCT_BEGIN
|
||||
#if (defined(__MWERKS__) || defined(__CWCC__))
|
||||
#pragma options align= packed
|
||||
#endif
|
||||
struct ip
|
||||
{
|
||||
#if defined(NO_CHAR_BITFIELDS)
|
||||
|
@ -47,6 +50,9 @@ typedef u32_t tcp_seq;
|
|||
* Per RFC 793, September, 1981.
|
||||
*/
|
||||
PACK_STRUCT_BEGIN
|
||||
#if (defined(__MWERKS__) || defined(__CWCC__))
|
||||
#pragma options align= packed
|
||||
#endif
|
||||
struct tcphdr
|
||||
{
|
||||
u_short th_sport; /* source port */
|
||||
|
|
Loading…
Reference in a new issue