FreeRTOS.org Info wrote:
Everywhere there is a macro that aligns a struct you have to add in:

#pragma data_alignment=4

Everywhere there is a macro that packs a struct you have to add in:

#pragma pack(1)

Because they use a # you cannot simply define the macro PACK_STRUCT_STRUCT
to do this for you.

This is why lwIP also provides PACK_STRUCT_USE_INCLUDES and provide two files: arch/bpstruct.h and arch/epstruct.h (begin packed struct and end packed struct).

You can then put the #pragma pack(1) in bpstruct.h and #pragma data_alignment=4 in epstruct.h.

Jifl
--
eCosCentric Limited      http://www.eCosCentric.com/     The eCos experts
Barnwell House, Barnwell Drive, Cambridge, UK.       Tel: +44 1223 245571
Registered in England and Wales: Reg No 4422071.
------["The best things in life aren't things."]------      Opinions==mine


_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to