cochran_emc.h: packed structs
thiago at macieira.org
Tue Oct 28 08:54:26 PDT 2014
On Tuesday 28 October 2014 17:39:27 Lubomir I. Ivanov wrote:
> > __declspec(packed)
> i don't have that in MSVC 2003; perhaps it's a newer feature.
Yeah, I was wrong, it's not there.
That's probably why the GCC attribute is disabled in MinGW for "MS struct"
compatibility. So it's not a bug, it's a feature.
The suggestion is to not require packing of structs. Reorder the members so
you don't need packing, if you can, or try to use different types if you really
need the members in that order due to data storage or protocol.
That said, the cochran_emc_log_t structure only uses unsigned char. I don't
see why packing is necessary in the first place.
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Software Architect - Intel Open Source Technology Center
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
More information about the subsurface