Re: Newbie question about compiler flag for 10.3 and 10.4
Re: Newbie question about compiler flag for 10.3 and 10.4
- Subject: Re: Newbie question about compiler flag for 10.3 and 10.4
- From: Steve Checkoway <email@hidden>
- Date: Sat, 4 Feb 2006 05:24:47 -0800
On Feb 3, 2006, at 11:45 AM, Fritz Anderson wrote:
On 3 Feb 2006, at 1:44 AM, Norio Ota wrote:
With typecasting to HIObjectRef with 10.3.sdk, ppc version of my
app was
built, but if I remain the typecast there, i386 version can't be
built.
I got an opposite error to the one I had got without typecast to
HIObjectRef.
So I have to build my app separately.
Oh, now I see. Try:
#if __ppc__
#define HIOR_CAST (HIObjectRef)
#else
#define HIOR_CAST
#endif
/*
* A comment to explain the reason for the #define,
* and to remember that this workaround can be removed
* if the PPC side ever becomes 10.4-and-up.
*/
SetFontInfoForSelection(a, b, c, HIOR_CAST myEventTargetRef);
How about:
#if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_4
# define SetFontInfoForSelection(a,b,c,d) \
SetFontInfoForSelection((a), (b), (c), (HIObjectRef)(d))
#endif
- Steve
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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