Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GCC 4.0 GetKeys() and BigEndianLong for Intel



Thanks, that did the trick.

On Jun 15, 2005, at 1:34 PM, Eric Albert wrote:

On Jun 15, 2005, at 12:01 PM, Ken Baer wrote:

Sorry I wasn't clear enough there. BigEndianLong is a long on PowerPC and a struct on Intel. Here's the Intel definition, from Endian.h:

struct BigEndianLong {
  long                bigEndianValue;
};
typedef struct BigEndianLong            BigEndianLong;

So you want to swap theKeys[1].bigEndianValue on little-endian systems, not theKeys[1].

-Eric


_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >GCC 4.0 GetKeys() and BigEndianLong for Intel (From: Ken Baer <email@hidden>)
 >Re: GCC 4.0 GetKeys() and BigEndianLong for Intel (From: Eric Albert <email@hidden>)
 >Re: GCC 4.0 GetKeys() and BigEndianLong for Intel (From: Ken Baer <email@hidden>)
 >Re: GCC 4.0 GetKeys() and BigEndianLong for Intel (From: Eric Albert <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.