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: Fritz Anderson <email@hidden>
- Date: Fri, 3 Feb 2006 13:45:10 -0600
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);
-- F
--
Fritz Anderson -- http://www.manoverboard.org/
Consulting Programmer -- http://resume.manoverboard.org/
Step into Xcode, Now Available -- http://six.manoverboard.org/
_______________________________________________
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