File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ case $host in
7474 backend="mac"
7575 os="darwin"
7676 threads="pthreads"
77- LIBS="${LIBS} -framework IOKit -framework CoreFoundation -framework AppKit "
77+ LIBS="${LIBS} -framework IOKit -framework CoreFoundation"
7878 ;;
7979*-freebsd*)
8080 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|
2626
2727 spec . public_header_files = "hidapi/hidapi.h" , "mac/hidapi_darwin.h"
2828
29- spec . frameworks = "IOKit" , "CoreFoundation" , "AppKit"
29+ spec . frameworks = "IOKit" , "CoreFoundation"
3030
3131end
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ find_package(Threads REQUIRED)
1212target_link_libraries (hidapi_darwin
1313 PUBLIC hidapi_include
1414 PRIVATE Threads::Threads
15- PRIVATE "-framework IOKit" "-framework CoreFoundation" "-framework AppKit"
15+ PRIVATE "-framework IOKit" "-framework CoreFoundation"
1616)
1717
1818set_target_properties (hidapi_darwin
Original file line number Diff line number Diff line change 1212COBJS=hid.o ../hidtest/test.o
1313OBJS=$(COBJS)
1414CFLAGS+=-I../hidapi -I. -Wall -g -c
15- LIBS=-framework IOKit -framework CoreFoundation -framework AppKit
15+ LIBS=-framework IOKit -framework CoreFoundation
1616
1717
1818hidtest: $(OBJS)
Original file line number Diff line number Diff line change 3838
3939#include "hidapi_darwin.h"
4040
41- /* As defined in AppKit.h, but we don't need the entire AppKit for a single constant. */
42- extern const double NSAppKitVersionNumber ;
43-
4441/* Barrier implementation because Mac OSX doesn't have pthread_barrier.
4542 It also doesn't have clock_gettime(). So much for POSIX and SUSv2.
4643 This implementation came from Brent Priddy and was posted on
@@ -466,7 +463,7 @@ int HID_API_EXPORT hid_init(void)
466463 register_global_error (NULL );
467464
468465 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 */
470467 hid_darwin_set_open_exclusive (1 ); /* Backward compatibility */
471468 return init_hid_manager ();
472469 }
You can’t perform that action at this time.
0 commit comments