• 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: Newbie question about compiler flag for 10.3 and 10.4
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Newbie question about compiler flag for 10.3 and 10.4 (From: Norio Ota <email@hidden>)
 >Re: Newbie question about compiler flag for 10.3 and 10.4 (From: Fritz Anderson <email@hidden>)

  • Prev by Date: Re: Debugger can't deal with source?
  • Next by Date: Re: Debugger can't deal with source?
  • Previous by thread: Re: Newbie question about compiler flag for 10.3 and 10.4
  • Next by thread: Java projects and RMI stubs?
  • Index(es):
    • Date
    • Thread