weak linking, what to do when weak attribute is missing?
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