1 byte struct alignment in gcc?
1 byte struct alignment in gcc?
- Subject: 1 byte struct alignment in gcc?
- From: email@hidden (Satoshi Yamamoto)
- Date: Tue, 13 Jul 2004 18:19:45 -0700
We have structs that needs to be aligned to 1 byte. In codewarrior, we were
using "#pragma options align=packed". Is there an equivalent pragma in gcc?
It seems like only "mac68k" and "power" are supported.
I've also found that you can use "__attribute__ ((packed))", but we are
hoping not to add this to every field in all the structs we got. Or is this
the only way to accomplish this in gcc?
Thanks in advance!
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.