summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libusb/libusb.h2
-rw-r--r--libusb/sync.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/libusb/libusb.h b/libusb/libusb.h
index b21a93f..b91b9eb 100644
--- a/libusb/libusb.h
+++ b/libusb/libusb.h
@@ -735,7 +735,7 @@ struct libusb_transfer;
* \param transfer The libusb_transfer struct the callback function is being
* notified about.
*/
-typedef void (*libusb_transfer_cb_fn)(struct libusb_transfer *transfer);
+typedef void (LIBUSB_API *libusb_transfer_cb_fn)(struct libusb_transfer *transfer);
/** \ingroup asyncio
* The generic USB transfer structure. The user populates this structure and
diff --git a/libusb/sync.c b/libusb/sync.c
index a626aa9..1d3796f 100644
--- a/libusb/sync.c
+++ b/libusb/sync.c
@@ -32,7 +32,7 @@
* may wish to consider using the \ref asyncio "asynchronous I/O API" instead.
*/
-static void ctrl_transfer_cb(struct libusb_transfer *transfer)
+static void LIBUSB_API ctrl_transfer_cb(struct libusb_transfer *transfer)
{
int *completed = transfer->user_data;
*completed = 1;
@@ -141,7 +141,7 @@ API_EXPORTED int LIBUSB_API libusb_control_transfer(libusb_device_handle *dev_ha
return r;
}
-static void bulk_transfer_cb(struct libusb_transfer *transfer)
+static void LIBUSB_API bulk_transfer_cb(struct libusb_transfer *transfer)
{
int *completed = transfer->user_data;
*completed = 1;