aboutsummaryrefslogtreecommitdiff
path: root/contrib/depends/patches/libusb/fix_osx_avail.patch
blob: 2474993f5228e21127eab1474f020ec994444cf7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
--- a/libusb/os/darwin_usb.h	2023-03-19 12:07:53
+++ b/libusb/os/darwin_usb.h	2023-03-19 12:07:47
@@ -165,7 +165,8 @@
   #define __has_builtin(x) 0  // Compatibility with non-clang compilers.
 #endif
 #if __has_builtin(__builtin_available)
-  #define HAS_CAPTURE_DEVICE() __builtin_available(macOS 10.10, *)
+//  #define HAS_CAPTURE_DEVICE() __builtin_available(macOS 10.10, *)
+  #define HAS_CAPTURE_DEVICE() 0
 #else
   #define HAS_CAPTURE_DEVICE() 0
 #endif