Re: GetAliasSize
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