summaryrefslogtreecommitdiff
path: root/devel/android-tools-adb/files/patch-adb_usb.h
blob: ca72a7ee6a482574e40bebdd4c563a9ff714fc5b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- adb/usb.h.orig	2017-06-20 10:50:27 UTC
+++ adb/usb.h
@@ -43,6 +43,7 @@ namespace libusb {
     ADB_USB_INTERFACE(libusb::usb_handle*);
 }
 
+#if defined(__linux__) || defined(__APPLE__) || defined(_WIN32)
 namespace native {
     struct usb_handle;
     ADB_USB_INTERFACE(native::usb_handle*);
@@ -53,6 +54,9 @@ struct usb_handle {
 };
 
 ADB_USB_INTERFACE(::usb_handle*);
+#else
+using namespace libusb;
+#endif
 
 #endif // linux host || darwin