This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: #Pragma pack
- From: John Love-Jensen <eljay at adobe dot com>
- To: "Kalinowski, Jeremy" <JKalinowski at microwavedata dot com>, MSX to GCC <gcc-help at gcc dot gnu dot org>
- Date: Tue, 16 Jan 2007 14:55:03 -0600
- Subject: Re: #Pragma pack
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