• 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: GetAliasSize
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GetAliasSize


  • Subject: Re: GetAliasSize
  • From: Eric Albert <email@hidden>
  • Date: Mon, 16 Jan 2006 10:52:47 -0800

On Jan 16, 2006, at 9:56 AM, Steve Mills wrote:

Hmm. What's the correct way to test the current architecture in a pch file? I have:

#if arch == i386
	#warning "max 10.4"
	#define MAC_OS_X_VERSION_MAX_ALLOWED MAC_OS_X_VERSION_10_4
#else
	#warning "max 10.3"
	#define MAC_OS_X_VERSION_MAX_ALLOWED MAC_OS_X_VERSION_10_3
#endif

When I look at the build transcript for a file when building my Debug config (which only has one architecture; ppc) it says "-arch ppc". Yet the preprocessor is saying that "arch == i386" is true, because I see "max 10.4" in the build transcript.

#if __i386__ // Do i386 stuff #endif #if __ppc__ // Do PPC stuff #endif

Hope this helps,
Eric

_______________________________________________
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: GetAliasSize
      • From: Steve Mills <email@hidden>
References: 
 >GetAliasSize (From: Steve Mills <email@hidden>)
 >Re: GetAliasSize (From: Shawn Erickson <email@hidden>)
 >Re: GetAliasSize (From: Steve Mills <email@hidden>)

  • Prev by Date: Re: Zerolink slows gdb to a crawl?
  • Next by Date: Re: GetAliasSize
  • Previous by thread: Re: GetAliasSize
  • Next by thread: Re: GetAliasSize
  • Index(es):
    • Date
    • Thread