Re: layout of __attribute__((packed)) vs. #pragma pack

2017-08-04 Thread Jim Wilson
On 07/28/2017 04:51 AM, Geza Herman wrote: There's an option in GCC "-mms-bitfields". The doc about it begins with: "If packed is used on a structure, or if bit-fields are used, it may be that the Microsoft ABI lays out the structure differently than the way GCC normally does. Particularly

layout of __attribute__((packed)) vs. #pragma pack

2017-07-28 Thread Geza Herman
Hi, There's an option in GCC "-mms-bitfields". The doc about it begins with: "If packed is used on a structure, or if bit-fields are used, it may be that the Microsoft ABI lays out the structure differently than the way GCC normally does. Particularly when moving packed data between