delorie.com/archives/browse.cgi | search |
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:29:44 +0300 |
MIME-Version: | 1.0 |
Subject: | Re: Padding structures to dword boundaries |
Message-ID: | <3AED84E8.5392.11B9FB7@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 |
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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |