summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/xusb.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/xusb.c b/examples/xusb.c
index 002c9ad..661201b 100644
--- a/examples/xusb.c
+++ b/examples/xusb.c
@@ -31,6 +31,12 @@
#include <libusb/libusb.h>
+#if defined(_MSC_VER)
+// The libusb library has a dependency on the setupapi and ole32 libs
+#pragma comment( lib, "setupapi.lib" )
+#pragma comment( lib, "ole32.lib" )
+#endif
+
#ifdef OS_WINDOWS
#define msleep(msecs) Sleep(msecs)
#else