Re: How to conditionally compile by architecture?
Re: How to conditionally compile by architecture?
- Subject: Re: How to conditionally compile by architecture?
- From: Stephen Kay <email@hidden>
- Date: Thu, 18 Oct 2012 15:06:11 -0400
- Thread-topic: How to conditionally compile by architecture?
on 10/18/12 2:08 PM, Nick Zitzmann at email@hidden wrote:
> You don't want to do this, because if the OS gets ported to, say, SuperH or
> MIPS, then you'll have additional work to accomplish. Use __BIG_ENDIAN__ and
> __LITTLE_ENDIAN__ instead if all you care about is compiling conditionally
> based on the endian-ness of the CPU.
Thanks! Sounds like it may be what I need for this...
>
> But why not instead use the swap-big-to-host functions that are in Foundation
> and CoreFoundation? That way you won't have to use #ifdefs at all if all you
> need to do is byte-swapping based on architecture.
Because I already have a Windows version of the same software, and I already
have all my byte-swapping code from that (including a ton of custom resource
byte-swapping functions, not to mention PowerPlant), so I think that
integrating that into the Mac version conditionally is perhaps the easier
way to go (for me).
- Stephen
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Stephen Kay
Karma-Lab :: developers of KARMA
http://www.karma-lab.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
_______________________________________________
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