Message-ID: <32F0CA8F.75A1@eik.bme.hu> Date: Thu, 30 Jan 1997 17:21:35 +0100 From: "DR. Andras Solyom" Reply-To: solyom AT eik DOT bme DOT hu Organization: Technical University of Budapest MIME-Version: 1.0 To: djgpp AT delorie DOT com Subject: Re: Help: Packing structures References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Eli Zaretskii wrote: > > On Thu, 30 Jan 1997, DR. Andras Solyom wrote: > > > Eli, is this covered in the FAQ? > > The latest release 2.10 of the FAQ explains that declaring the entire > struct with packed attribute only works in C; in C++ you need to declare > every struct member with that attribute. Is that enough? If I think about very carefully this can be OK. But does this imply that the construct: struct foo { int l1 PACKED, l2 PACKED; .... }; also guaranties packing? (I did not try this one. For those who did not read my previous posting, PACKING is a #define for __attribute__ ((packed)) ). Will newbies understand it?