File tree 5 files changed +5
-8
lines changed
5 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ case $host in
74
74
backend="mac"
75
75
os="darwin"
76
76
threads="pthreads"
77
- LIBS="${LIBS} -framework IOKit -framework CoreFoundation -framework AppKit "
77
+ LIBS="${LIBS} -framework IOKit -framework CoreFoundation"
78
78
;;
79
79
*-freebsd*)
80
80
AC_MSG_RESULT ( [ (FreeBSD back-end)] )
Original file line number Diff line number Diff line change @@ -26,6 +26,6 @@ Pod::Spec.new do |spec|
26
26
27
27
spec . public_header_files = "hidapi/hidapi.h" , "mac/hidapi_darwin.h"
28
28
29
- spec . frameworks = "IOKit" , "CoreFoundation" , "AppKit"
29
+ spec . frameworks = "IOKit" , "CoreFoundation"
30
30
31
31
end
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ find_package(Threads REQUIRED)
12
12
target_link_libraries (hidapi_darwin
13
13
PUBLIC hidapi_include
14
14
PRIVATE Threads::Threads
15
- PRIVATE "-framework IOKit" "-framework CoreFoundation" "-framework AppKit"
15
+ PRIVATE "-framework IOKit" "-framework CoreFoundation"
16
16
)
17
17
18
18
set_target_properties (hidapi_darwin
Original file line number Diff line number Diff line change 12
12
COBJS=hid.o ../hidtest/test.o
13
13
OBJS=$(COBJS)
14
14
CFLAGS+=-I../hidapi -I. -Wall -g -c
15
- LIBS=-framework IOKit -framework CoreFoundation -framework AppKit
15
+ LIBS=-framework IOKit -framework CoreFoundation
16
16
17
17
18
18
hidtest: $(OBJS)
Original file line number Diff line number Diff line change 38
38
39
39
#include "hidapi_darwin.h"
40
40
41
- /* As defined in AppKit.h, but we don't need the entire AppKit for a single constant. */
42
- extern const double NSAppKitVersionNumber ;
43
-
44
41
/* Barrier implementation because Mac OSX doesn't have pthread_barrier.
45
42
It also doesn't have clock_gettime(). So much for POSIX and SUSv2.
46
43
This implementation came from Brent Priddy and was posted on
@@ -466,7 +463,7 @@ int HID_API_EXPORT hid_init(void)
466
463
register_global_error (NULL );
467
464
468
465
if (!hid_mgr ) {
469
- is_macos_10_10_or_greater = (NSAppKitVersionNumber >= 1343 ); /* NSAppKitVersionNumber10_10 */
466
+ is_macos_10_10_or_greater = (kCFCoreFoundationVersionNumber >= 1151.16 ); /* kCFCoreFoundationVersionNumber10_10 */
470
467
hid_darwin_set_open_exclusive (1 ); /* Backward compatibility */
471
468
return init_hid_manager ();
472
469
}
You can’t perform that action at this time.
0 commit comments