One may force the structure to be packed by using #pragma pack or
the pack attribute. See http://gcc.gnu.org/onlinedocs/gcc/Type-Attributes.html
for details. Of course, one may pay a performance penalty by doing
so, or outright crash (Altivec / SSE have a strong 16 bytes
alignment requirement, for example).
I only warned that it might not work in standard C, of course, it
works most of the time, and compilers often have means to make it
work. It's only to make people aware it might crash/don't work one
day, on a system with different packing.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/mac-opengl/email@hidden