Specifying "enum" data size
Specifying "enum" data size
- Subject: Specifying "enum" data size
- From: Mark Wagner <email@hidden>
- Date: Fri, 23 Sep 2005 17:04:28 -0700
How do I specify the size of an "enum" value? I've got a program that
links to a number of static libraries. In one of them, an "enum" for
the typedef'd "BoolEnum" type is one bit, while in another, it's 32
bits. Needless to say, this causes problems when passing structs
containing BoolEnums back and forth.
Does GCC recognize the "#pragma enumsalwaysint" pragma? Might the
presence of this in some of the source files be causing problems?
I'm using XCode 1.5 and GCC 3.3, and I'm writing in C.
Thanks,
Mark Wagner
_______________________________________________
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