Re: 4 vs 8 alignment
Re: 4 vs 8 alignment
- Subject: Re: 4 vs 8 alignment
- From: Luigi Castelli <email@hidden>
- Date: Mon, 11 Dec 2006 11:56:10 -0800 (PST)
Hi there,
try this:
#pragma pack(push, 8)
#pragma pack(8)
// your struct definitions
#pragma pack(pop) // to restore alignment how it
was
#pragma pack()
Let me know if it works.
- Luigi
--- Paul Cummings <email@hidden> wrote:
> Hello,
>
> I have a structure thats being read on the PC, that
> was originally
> packed on the mac side. The struct seems to be 4
> byte aligned on the
> Mac, but the struct is 8 byte aligned on the PC (
> 172 bytes on the mac
> vs 176 on the pc )
>
> Is there a pragma setting or a setting in xcode that
> can guarantee the
> data will be packed in 8 byte alignment?
>
> thanks
>
> Paul
>
> --
> Internal Virus Database is out-of-date.
> Checked by AVG Free Edition.
> Version: 7.5.430 / Virus Database: 268.14.4/532 -
> Release Date:
> 11/13/2006 3:08 PM
>
> > _______________________________________________
> Do not post admin requests to the list. They will be
> ignored.
> Xcode-users mailing list
> (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
>
> This email sent to email@hidden
------------------------------------------------------------
THIS E-MAIL MESSAGE IS FOR THE SOLE USE OF THE INTENDED RECIPIENT AND MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED INFORMATION. ANY UNAUTHORIZED REVIEW, USE, DISCLOSURE OR DISTRIBUTION IS PROHIBITED. IF YOU ARE NOT THE INTENDED RECIPIENT, CONTACT THE SENDER BY E-MAIL AT email@hidden AND DESTROY ALL COPIES OF THE ORIGINAL MESSAGE. WITHOUT PREJUDICE UCC1-207.
------------------------------------------------------------
____________________________________________________________________________________
Want to start your own business?
Learn how on Yahoo! Small Business.
http://smallbusiness.yahoo.com/r-index
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden