Mail Archives: djgpp/2001/04/30/11:49:32
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 <tr AT midpec DOT com>
Web: http://www.midpec.com/
The greatest thing is not getting to the top, but remaining onself in the
process.
- Raw text -