mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2026-01-17 15:20:25 -05:00
Added extra compiler specific structure packing options.
This commit is contained in:
parent
d6ec78a568
commit
aa2ffbfde5
10 changed files with 54 additions and 0 deletions
|
|
@ -44,6 +44,9 @@ extern "C" {
|
|||
# include "arch/bpstruct.h"
|
||||
#endif
|
||||
PACK_STRUCT_BEGIN
|
||||
#if (defined(__MWERKS__) || defined(__CWCC__))
|
||||
#pragma options align= packed
|
||||
#endif
|
||||
struct ip_addr {
|
||||
PACK_STRUCT_FIELD(u32_t addr[4]);
|
||||
} PACK_STRUCT_STRUCT;
|
||||
|
|
@ -60,6 +63,9 @@ PACK_STRUCT_END
|
|||
# include "arch/bpstruct.h"
|
||||
#endif
|
||||
PACK_STRUCT_BEGIN
|
||||
#if (defined(__MWERKS__) || defined(__CWCC__))
|
||||
#pragma options align= packed
|
||||
#endif
|
||||
struct ip_addr2 {
|
||||
PACK_STRUCT_FIELD(u16_t addrw[2]);
|
||||
} PACK_STRUCT_STRUCT;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue