lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-devel] error introduced by commit acb4b60517572094bcd633c7df6f


From: Stian Skjelstad
Subject: Re: [lwip-devel] error introduced by commit acb4b60517572094bcd633c7df6fbd90836c4e2d icmp6_param_problem
Date: Thu, 12 Oct 2017 21:04:20 +0200

On Thu, Oct 12, 2017 at 8:51 PM, goldsimon <address@hidden> wrote:


Stian Skjelstad wrote:
>If using  #pragma pack  this error-checking is not performed, but you
>can
>not define a macro to performs #pragma

You can still use the pragma: have a look at the win32 port to see how to use include files to start & end packing.

I totally overlooked PACK_STRUCT_USE_INCLUDES when looking at struct definition, thank you. Posting what seems to be a working setup here, so people can find it when searching the archive.

cc.h:
<snip>
#define PACK_STRUCT_USE_INCLUDES
#define PACK_STRUCT_BEGIN
#define PACK_STRUCT_STRUCT 
#define PACK_STRUCT_END
#define PACK_STRUCT_FIELD(x) x
</snip>

bpstruct.h:
#pragma push
#pragma pack(1)

epstruct.h:
#pragma pop

 

--
Stian Skjelstad

reply via email to

[Prev in Thread] Current Thread [Next in Thread]