Re: Re[2]: Architecture setting: i386 in Release
Re: Re[2]: Architecture setting: i386 in Release
- Subject: Re: Re[2]: Architecture setting: i386 in Release
- From: "Dirk Stegemann (Mailing-Lists)" <email@hidden>
- Date: Wed, 20 Jun 2007 17:31:41 +0300
Hello,
Am 20.06.2007 um 17:07 schrieb Peter Mulholland:
Hello Sean,
Wednesday, June 20, 2007, 2:58:06 PM, you wrote:
On 6/20/07 2:48 PM, Calum Robertson said:
#ifdef i386
...
#endif
You should use #ifdef __APPLE__ for OS X-specific code. Also, its
__i386__, but that would only be 1 on Intel Macs, not ppc Macs.
To clarify, __i386__ is only defined when compiling for i386. It is
not set during any ppc builds (__ppc__ is instead).
I always recommend not to use '#ifdef', but simply '#if' instead:
#if __APPLE__
#if __LITTLE_ENDIAN__
...
#elif __BIG_ENDIAN__
...
#else
#error "undefined architecture"
#endif
#endif
That way, those macros which are defined to '0' and those which are
not defined at all, are treated the same.
Best,
Dirk Stegemann
_______________________________________________
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