• 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: Dave Rehring <email@hidden>
  • Date: Fri, 18 Nov 2005 21:41:50 -0800
  • Thread-topic: [2.2] Cant get __attribute__ ((__packed__)) to work

On 11/15/05 10:01 AM, Dave Camp at email@hidden wrote:

> Assuming you mean the following, it does not work. I still get a 4
> byte enum:
>
> #pragma options align=mac68k
> typedef enum
> {
> foo  = 0x10
> } fooEnum;
> #pragma options align=reset
>
> So, is gcc 4 busted in regards to __packed__ and enums, or am I doing
> something wrong?
>
> Dave

Um, I wouldn't think __packed__ to have any effect on the size of enum's.
Isn't it just applicable to struct [and maybe class] layout?

Later,
--
David Rehring                  Psychos do not explode when light hits
VP of Research and Development them, no matter how crazy they are...
Atimi Software, Inc.
www.atimi.com                  And totally insane guy!


 _______________________________________________
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

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

  • Prev by Date: Namespace bug?
  • Next by Date: Re: Namespace bug?
  • Previous by thread: Re: [2.2] Cant get __attribute__ ((__packed__)) to work
  • Next by thread: Re: [2.2] Cant get __attribute__ ((__packed__)) to work
  • Index(es):
    • Date
    • Thread