Re[2]: Architecture setting: i386 in Release
Re[2]: Architecture setting: i386 in Release
- Subject: Re[2]: Architecture setting: i386 in Release
- From: Peter Mulholland <email@hidden>
- Date: Wed, 20 Jun 2007 15:07:16 +0100
Hello Sean,
Wednesday, June 20, 2007, 2:58:06 PM, you wrote:
> On 6/20/07 2:48 PM, Calum Robertson said:
>>I'm working on a multi-platform project (original code was win32 and
>>unix) and have created my first xcode project. I need to do add in
>>some mac specific code and have been using the following construct:
>>
>>#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).
--
Best regards,
Peter mailto:email@hidden
_______________________________________________
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