darwin: do not use objc_registerThreadWithCollector where deprecated
authorNathan Hjelm <hjelmn@me.com>
Thu, 8 Sep 2016 00:50:43 +0000 (18:50 -0600)
committerNathan Hjelm <hjelmn@me.com>
Thu, 8 Sep 2016 00:50:43 +0000 (18:50 -0600)
commit756cc2b5d1558cb7ef59f73d4246f50c4f18824a
tree1d9ea9fcdc18f495ede4a22581fbd9164e9c2a65
parentaa1d76cd13ae8f8fac696ab2c3204d3f39c77c4c
darwin: do not use objc_registerThreadWithCollector where deprecated

This commit updates the check around objc_registerThreadWithCollector
to enable the call only between 10.6 (introduced) and 10.8 (deprecated).

Signed-off-by: Nathan Hjelm <hjelmn@me.com>
libusb/os/darwin_usb.c
libusb/version_nano.h