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: Finding the architectures of a binary



On Mon, Nov 10, 2008 at 5:48 AM, Iceberg-Dev <email@hidden> wrote:
> #if BYTE_ORDER==LITTLE_ENDIAN
>                                tMagicCookie=CFSwapInt32(tMagicCookie);
> #endif

Instead of these preprocessor checks, why not just do:

tMagicCookie =CFSwapInt32BigToHost(tMagicCookie);


-- 
Clark S. Cox III
email@hidden
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden

References: 
 >Finding the architectures of a binary (From: Iceberg-Dev <email@hidden>)
 >Re: Finding the architectures of a binary (From: Brian Bergstrand <email@hidden>)
 >Re: Finding the architectures of a binary (From: Iceberg-Dev <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.