From: pavenis AT lanet DOT lv To: Lee_Westlake AT TaliadonSystems DOT fsbusiness DOT co DOT uk (Lee Westlake), djgpp AT delorie DOT com Date: Mon, 30 Apr 2001 15:31:38 +0300 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: Padding structures to dword boundaries Message-ID: <3AED855A.7952.11D5EE2@localhost> In-reply-to: <3aed224f.3089774@news.freeserve.net> X-mailer: Pegasus Mail for Win32 (v3.12c) Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On 30 Apr 2001, at 8:31, Lee Westlake wrote: > Does anyone know how to prevent djgpp from padding structures to dword > boundaries? > > for example: #pragma pack(1) typedef struct { short width; short height; char data1; char data2; char data3; }mystruct; #pragma pack() > has a byte size of 8 not 7. Andris