#Pragma pack
John Love-Jensen
eljay@adobe.com
Tue Jan 16 20:55:00 GMT 2007
Hi Jeremy,
> Does anyone know what would be the correct syntax in GCC would be for
> #pragma pack(push, enter_pack_state)? Thanks a bunch.
http://gcc.gnu.org/onlinedocs/gcc-4.1.1/gcc/Structure_002dPacking-Pragmas.ht
ml
I'm not sure if that syntax is supported on all platforms, or if it is just
on Windows for MSVC compatibility.
More often, the __attribute__((packed)) is suggested.
HTH,
--Eljay
More information about the Gcc-help
mailing list