Date: Wed, 3 Mar 1999 14:04:06 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Gisle Vanem cc: djgpp AT delorie DOT com Subject: Re: Real stupid problem. In-Reply-To: <005401be6551$992b7130$293f8589@gv015029.bgo.nera.no> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com On Wed, 3 Mar 1999, Gisle Vanem wrote: > >It's "__attribute__((packed))" (double parentheses). > > Why don't people use '#pragma pack(1)' instead. The GCC docs explain why the GNU project thinks pragmas are the wrong tool for just about anything. > And refering section 22.11 in the FAQ > it seems that '__attribute__((packed))' is buggy (for C++) in gcc 2.7.2. I don't expect anybody to use 2.7.2 anymore.