Index: third_party/libusb/src/libusb/os/linux_usbfs.h |
diff --git a/third_party/libusb/src/libusb/os/linux_usbfs.h b/third_party/libusb/src/libusb/os/linux_usbfs.h |
index 1f5b191f4a745937efe52695d7dbaa949a15df08..eedeaaf3654f22ecaac9fd1332d32b2855450bce 100644 |
--- a/third_party/libusb/src/libusb/os/linux_usbfs.h |
+++ b/third_party/libusb/src/libusb/os/linux_usbfs.h |
@@ -159,10 +159,20 @@ struct usbfs_disconnect_claim { |
extern usbi_mutex_static_t linux_hotplug_lock; |
#if defined(HAVE_LIBUDEV) |
+ |
+#ifdef __cplusplus |
+extern "C" { |
+#endif |
+ |
int linux_udev_start_event_monitor(void); |
int linux_udev_stop_event_monitor(void); |
int linux_udev_scan_devices(struct libusb_context *ctx); |
void linux_udev_hotplug_poll(void); |
+ |
+#ifdef __cplusplus |
+} |
+#endif |
+ |
#else |
int linux_netlink_start_event_monitor(void); |
int linux_netlink_stop_event_monitor(void); |