• 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
weak linking, what to do when weak attribute is missing?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

weak linking, what to do when weak attribute is missing?


  • Subject: weak linking, what to do when weak attribute is missing?
  • From: "Sean McBride" <email@hidden>
  • Date: Tue, 5 Oct 2010 14:09:09 -0400
  • Organization: Rogue Research Inc.

Hi all,

My app supports 10.5+.  There are a few C API that are new in 10.6 that
I'd like to use conditionally.  Namely:

pthread_setname_np
objc_registerThreadWithCollector

However, neither of these are tagged using the Availability Macros.
Compare with NSAllocateCollectable:

FOUNDATION_EXPORT void *__strong NSAllocateCollectable(NSUInteger size,
NSUInteger options) AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER;

vs

int		pthread_setname_np(const char*);

1) Is there a reason they are not tagged, or is it a simple error/bug?

2) How can I use these conditionally?  Would it be enough to reprototype
the function and add the weak attribute?

Thanks,

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


 _______________________________________________
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

  • Prev by Date: Re: Exporting custom class names from ibtool
  • Next by Date: Xcode doesn't like app names containing a dollar sign
  • Previous by thread: Re: Exporting custom class names from ibtool
  • Next by thread: Xcode doesn't like app names containing a dollar sign
  • Index(es):
    • Date
    • Thread