Re: [2.2] Cant get __attribute__ ((__packed__)) to work
Re: [2.2] Cant get __attribute__ ((__packed__)) to work
- Subject: Re: [2.2] Cant get __attribute__ ((__packed__)) to work
- From: Steve Checkoway <email@hidden>
- Date: Tue, 22 Nov 2005 16:18:28 -0800
On Nov 21, 2005, at 2:19 PM, Dave Camp wrote:
That was one of my early tests and it doesn't even compile. Here is
my test code:
typedef enum __attribute__ ((__packed__))
{
foo = 0x10
} fooEnum;
It should be:
typedef enum
{
foo = 0x10
} __attribute__((__packed__)) fooEnum;
Compiles fine after that. (Your format specifier is wrong though. It
should be %zu.)
- Steve
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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