This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]