Update libusb-1.0.def
authormcuee <xiaofanc@gmail.com>
Sun, 25 Jul 2021 08:26:37 +0000 (16:26 +0800)
committerNathan Hjelm <hjelmn@google.com>
Tue, 27 Jul 2021 05:17:11 +0000 (23:17 -0600)
This fixes issue #944 C++ symbol for libusb_set_option not exported correctly.
As per the report in issue #944, original commit is correct but subsequent edits cause the regression.
https://github.com/libusb/libusb/blob/v1.0.22-rc1/libusb/libusb-1.0.def#L156

Closes #964

Signed-off-by: Xiaofan Chen xiaofanc@gmail.com
Signed-off-by: Nathan Hjelm <hjelmn@google.com>
libusb/libusb-1.0.def
libusb/version_nano.h

index 700a8bc..e357ef5 100644 (file)
@@ -155,7 +155,7 @@ EXPORTS
   libusb_set_interface_alt_setting
   libusb_set_interface_alt_setting@12 = libusb_set_interface_alt_setting
   libusb_set_option
-  _libusb_set_option = libusb_set_option
+  libusb_set_option@8 = libusb_set_option
   libusb_set_pollfd_notifiers
   libusb_set_pollfd_notifiers@16 = libusb_set_pollfd_notifiers
   libusb_setlocale
index 0e73473..88f37e6 100644 (file)
@@ -1 +1 @@
-#define LIBUSB_NANO 11644
+#define LIBUSB_NANO 11645