GetAliasSize
GetAliasSize
- Subject: GetAliasSize
- From: Steve Mills <email@hidden>
- Date: Mon, 16 Jan 2006 11:00:51 -0600
I have my project set up to target the 10.3.9 sdk for ppc and the
10.4u sdk for i386. One piece of code uses the new GetAliasSize
routine in Aliases.h in the 10.4 sdks. However, I'm getting an error
that GetAliasSize was not declared.
My pch has these lines (we require minimum 10.3 for ppc and 10.4 for
i386, but don't want to use any 10.4 APIs in the ppc build):
#if defined(MAC_OS_X_VERSION_MIN_REQUIRED)
#undef MAC_OS_X_VERSION_MIN_REQUIRED
#endif
#if arch == i386
#warning "min 10.4"
#define MAC_OS_X_VERSION_MIN_REQUIRED MAC_OS_X_VERSION_10_4
#else
#warning "min 10.3"
#define MAC_OS_X_VERSION_MIN_REQUIRED MAC_OS_X_VERSION_10_3
#endif
#if defined(MAC_OS_X_VERSION_MAX_ALLOWED)
#undef MAC_OS_X_VERSION_MAX_ALLOWED
#endif
#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
The output for that pch shows that "min 10.4" and "max 10.4" are
indeed being used. The code that generates the error is this:
inline Size DogbertGetAliasSize(const AliasHandle alias)
{
if(alias != nil) {
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4
return GetAliasSize(alias);
#endif
return (**alias).aliasSize;
}
return 0;
}
Anybody see a problem here? Note that a total of 4 pch files are
precompiled:
C ppc
C++ ppc
C i386
C++ i386
The pch that has the problem is i386 C++. The other 3 are fine.
Steve Mills
Drummer, Mac geek
http://sjmills5.home.mchsi.com/
_______________________________________________
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