• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [2.2] Cant get __attribute__ ((__packed__)) to work
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: [2.2] Cant get __attribute__ ((__packed__)) to work (From: Dave Rehring <email@hidden>)
 >Re: [2.2] Cant get __attribute__ ((__packed__)) to work (From: Chris Espinosa <email@hidden>)
 >Re: [2.2] Cant get __attribute__ ((__packed__)) to work (From: Dave Camp <email@hidden>)
 >Re: [2.2] Cant get __attribute__ ((__packed__)) to work (From: Chris Espinosa <email@hidden>)
 >Re: [2.2] Cant get __attribute__ ((__packed__)) to work (From: Dave Camp <email@hidden>)

  • Prev by Date: Re: Changing automatic header insert
  • Next by Date: [SOLVED] Changing automatic header insert
  • Previous by thread: Re: [2.2] Cant get __attribute__ ((__packed__)) to work
  • Next by thread: Xcode copying .h files to Package?
  • Index(es):
    • Date
    • Thread