On 05/06/2014 07:41 AM, Андрей Парамонов wrote:
> There is also something called "pragma pack":
>
> #pragma pack(push, 1)
> struct Foo
> {
> // ...
> };
> #pragma pack(pop)
That pragma will not deal with the issue of variable type sizes (enum, int,
long, etc).
If you want structures to be compatible across compilers, you must also use
fixed size types only (int64_t & friends).
Of course, such a change would definitely break ABI compatibility with older
versions of the library,
so it would require an .so-name change.Cheers, Nathanael Hübbe
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Hdf-forum is for HDF software users discussion. [email protected] http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
