• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re[2]: Architecture setting: i386 in Release
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Re[2]: Architecture setting: i386 in Release
      • From: "Dirk Stegemann (Mailing-Lists)" <email@hidden>
References: 
 >Architecture setting: i386 in Release (From: Calum Robertson <email@hidden>)
 >Re: Architecture setting: i386 in Release (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Re: Architecture setting: i386 in Release
  • Next by Date: Re: Re[2]: Architecture setting: i386 in Release
  • Previous by thread: Re: Architecture setting: i386 in Release
  • Next by thread: Re: Re[2]: Architecture setting: i386 in Release
  • Index(es):
    • Date
    • Thread