Message-ID: <5BF60CD649EDD411A04600B0D049F53A5441C8@hydmail02.hyd.wilco-int.com> From: Prashant Ramachandra To: "'djgpp AT delorie DOT com'" Subject: RE: Padding structures to dword boundaries Date: Mon, 30 Apr 2001 18:47:57 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain Reply-To: djgpp AT delorie DOT com On Monday, April 30, 2001 2:02 PM, Lee_Westlake AT TaliadonSystems DOT fsbusiness DOT co DOT uk [SMTP:Lee_Westlake AT TaliadonSystems DOT fsbusiness DOT co DOT uk] wrote: | Does anyone know how to prevent djgpp from padding structures to | dword | boundaries? | Use __attribute__ ((packed)) like this: struct { int x __attribute__ ((packed)); ... } something; -- Prashant TR Web: http://www.midpec.com/ The greatest thing is not getting to the top, but remaining onself in the process.