summaryrefslogtreecommitdiff
path: root/examples/xusb.c
diff options
context:
space:
mode:
authorTim Roberts <timr@probo.com>2010-04-16 10:27:33 +0100
committerTim Roberts <timr@probo.com>2010-04-16 10:27:33 +0100
commit32a674508af7f83ad5b0d1c1ec9cc0683fea5d69 (patch)
tree227b55ae28e6481d7238df1ba289997a3db0af1b /examples/xusb.c
parent9c835700e5553d5b6c5123a244c177faf08afbcf (diff)
downloadlibusb-32a674508af7f83ad5b0d1c1ec9cc0683fea5d69.tar.gz
added more explicit library dependencies in xusb.c (MSVC)
Diffstat (limited to 'examples/xusb.c')
-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