On May 6, 2012, at 22:51 , Graham Cox wrote:

> Could this be caused by the 64 bit compiler padding out my structures in a 
> different way for 64-bit builds?

Yes, I believe in 64-bit builds 8-byte data types are 8-byte aligned, while 
they're only 4-bit aligned in 32-bit builds -- or something like that.

> If so is there a way to tell it not to for these types?

Try this:

        typedef struct {
                ...
        } __attribute__ ((packed)) MyStruct;


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to