Date: Sun, 21 Sep 1997 15:26:34 +0000 ( ) From: "Gurunandan R. Bhat" To: Jan Baumgart Cc: djgpp AT delorie DOT com Subject: Re: Packed structs ? In-Reply-To: Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Fri, 19 Sep 1997, Jan Baumgart wrote: > Is there a keyword to tell DJGPP to pack one _single_ struct, this means > non-alignment of the variables, thus leaving no "holes" between them ? struct tag { type1 member1; type2 member2 __attribute__ ((packed)); type3 member3 __attribute__ ((packed)); ... type membern __attribute__ ((packed)): } struct_instance; You can read more about this in the gcc documentation under C (C++) Extensions