summaryrefslogtreecommitdiff
path: root/libusb/libusbi.h
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2022-06-26 13:28:58 -0700
committerTormod Volden <debian.tormod@gmail.com>2022-09-04 21:10:40 +0200
commit5c27abd59ead601177c724a87568e20e87861878 (patch)
tree7284741164772baaeeabd9c1b3afb87cb0724203 /libusb/libusbi.h
parent687bf21a7dde218514c5e6508d0cb8da2071cf3c (diff)
downloadlibusb-5c27abd59ead601177c724a87568e20e87861878.tar.gz
windows: Mark libusb_set_option as WINAPIV
WINAPI evaluates to __stdcall, which does not work with variadic functions. MSVC and MinGW implicitly demote this to __cdecl (clang does too and also warns about it). Instead of having this implicit, make it explicit. Closes #1160 Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'libusb/libusbi.h')
-rw-r--r--libusb/libusbi.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libusb/libusbi.h b/libusb/libusbi.h
index c2b9a6b..e399666 100644
--- a/libusb/libusbi.h
+++ b/libusb/libusbi.h
@@ -128,6 +128,7 @@ typedef atomic_long usbi_atomic_t;
* return_type LIBUSB_CALL function_name(params);
*/
#define API_EXPORTED LIBUSB_CALL DEFAULT_VISIBILITY
+#define API_EXPORTEDV LIBUSB_CALLV DEFAULT_VISIBILITY
#ifdef __cplusplus
extern "C" {