summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorChris Dickens <christopher.a.dickens@gmail.com>2017-12-26 23:58:00 -0800
committerChris Dickens <christopher.a.dickens@gmail.com>2017-12-26 23:58:00 -0800
commit539a3230cff8aa3430d4948d377d2a9224302197 (patch)
tree7974a2ab0f02b37faf93c485fe4f106b9e7d07e4 /examples
parent8aad7fd1de08c173ff0fec87abb85bd940526603 (diff)
downloadlibusb-539a3230cff8aa3430d4948d377d2a9224302197.tar.gz
Misc: Fix testlibusb build on VS2013 and earlier and suppress warnings
Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/testlibusb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/testlibusb.c b/examples/testlibusb.c
index df5bb84..893203a 100755
--- a/examples/testlibusb.c
+++ b/examples/testlibusb.c
@@ -21,6 +21,10 @@
#include <string.h>
#include "libusb.h"
+#if defined(_MSC_VER) && (_MSC_VER < 1900)
+#define snprintf _snprintf
+#endif
+
int verbose = 0;
static void print_endpoint_comp(const struct libusb_ss_endpoint_companion_descriptor *ep_comp)