mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 09:19:01 +08:00
45 lines
1.8 KiB
Diff
45 lines
1.8 KiB
Diff
diff --git a/channels/urbdrc/client/libusb/libusb_udevice.c b/channels/urbdrc/client/libusb/libusb_udevice.c
|
|
index 94117bc..218a56f 100644
|
|
--- a/channels/urbdrc/client/libusb/libusb_udevice.c
|
|
+++ b/channels/urbdrc/client/libusb/libusb_udevice.c
|
|
@@ -168,7 +168,7 @@ static void async_transfer_user_data_free(ASYNC_TRANSFER_USER_DATA* user_data)
|
|
}
|
|
}
|
|
|
|
-static void func_iso_callback(struct libusb_transfer* transfer)
|
|
+static void LIBUSB_CALL func_iso_callback(struct libusb_transfer* transfer)
|
|
{
|
|
ASYNC_TRANSFER_USER_DATA* user_data = (ASYNC_TRANSFER_USER_DATA*)transfer->user_data;
|
|
#if defined(HAVE_STREAM_ID_API)
|
|
@@ -269,7 +269,7 @@ static const LIBUSB_ENDPOINT_DESCEIPTOR* func_get_ep_desc(LIBUSB_CONFIG_DESCRIPT
|
|
return NULL;
|
|
}
|
|
|
|
-static void func_bulk_transfer_cb(struct libusb_transfer* transfer)
|
|
+static void LIBUSB_CALL func_bulk_transfer_cb(struct libusb_transfer* transfer)
|
|
{
|
|
ASYNC_TRANSFER_USER_DATA* user_data;
|
|
uint32_t streamID;
|
|
diff --git a/channels/urbdrc/client/libusb/libusb_udevman.c b/channels/urbdrc/client/libusb/libusb_udevman.c
|
|
index 973d9c1..1d1548b 100644
|
|
--- a/channels/urbdrc/client/libusb/libusb_udevman.c
|
|
+++ b/channels/urbdrc/client/libusb/libusb_udevman.c
|
|
@@ -550,7 +550,7 @@ static BOOL device_is_filtered(struct libusb_device* dev,
|
|
return filtered;
|
|
}
|
|
|
|
-static int hotplug_callback(struct libusb_context* ctx, struct libusb_device* dev,
|
|
+static int LIBUSB_CALL hotplug_callback(struct libusb_context* ctx, struct libusb_device* dev,
|
|
libusb_hotplug_event event, void* user_data)
|
|
{
|
|
VID_PID_PAIR pair;
|
|
@@ -828,7 +828,7 @@ static BOOL poll_libusb_events(UDEVMAN* udevman)
|
|
return rc > 0;
|
|
}
|
|
|
|
-static DWORD poll_thread(LPVOID lpThreadParameter)
|
|
+static DWORD __stdcall poll_thread(LPVOID lpThreadParameter)
|
|
{
|
|
libusb_hotplug_callback_handle handle;
|
|
UDEVMAN* udevman = (UDEVMAN*)lpThreadParameter;
|