|
@@ -38,9 +38,6 @@
|
|
|
|
|
|
#include "hidapi_darwin.h"
|
|
|
|
|
|
-/* As defined in AppKit.h, but we don't need the entire AppKit for a single constant. */
|
|
|
-extern const double NSAppKitVersionNumber;
|
|
|
-
|
|
|
/* Barrier implementation because Mac OSX doesn't have pthread_barrier.
|
|
|
It also doesn't have clock_gettime(). So much for POSIX and SUSv2.
|
|
|
This implementation came from Brent Priddy and was posted on
|
|
@@ -477,7 +474,7 @@ int HID_API_EXPORT hid_init(void)
|
|
|
register_global_error(NULL);
|
|
|
|
|
|
if (!hid_mgr) {
|
|
|
- is_macos_10_10_or_greater = (NSAppKitVersionNumber >= 1343); /* NSAppKitVersionNumber10_10 */
|
|
|
+ is_macos_10_10_or_greater = (kCFCoreFoundationVersionNumber >= 1151.16); /* kCFCoreFoundationVersionNumber10_10 */
|
|
|
hid_darwin_set_open_exclusive(1); /* Backward compatibility */
|
|
|
return init_hid_manager();
|
|
|
}
|