www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - __attribute__((packed));

reply Trevor Parscal <Trevor_member pathlink.com> writes:
How do I perform the same functionality of

struct FOO
{
int bar;
} __attribute__((packed));

which is C code... in D? (specifcally the __attribute__((packed)) part)

Thanks,
Trevor Parscal
Feb 17 2006
parent "Walter Bright" <newshound digitalmars.com> writes:
"Trevor Parscal" <Trevor_member pathlink.com> wrote in message 
news:dt65s7$16db$1 digitaldaemon.com...
 How do I perform the same functionality of

 struct FOO
 {
 int bar;
 } __attribute__((packed));

 which is C code... in D? (specifcally the __attribute__((packed)) part)

align (1)
Feb 17 2006