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>
/* Set this thread's name, so it can be seen in the debugger
and crash reports. */
-#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1060
+#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1060 && MAC_OS_X_VERSION_MIN_REQUIRED <= 1080
pthread_setname_np ("org.libusb.device-hotplug");
/* Tell the Objective-C garbage collector about this thread.
-#define LIBUSB_NANO 11141
+#define LIBUSB_NANO 11142