diff options
author | Pete Batard <pbatard@gmail.com> | 2010-01-28 23:18:52 +0000 |
---|---|---|
committer | Pete Batard <pbatard@gmail.com> | 2010-01-28 23:18:52 +0000 |
commit | 47c83183c080c866c54bcf886e535ff7db907bb8 (patch) | |
tree | bdc1368e54dd601ec679f392e843a6700c4684f9 /examples/xusb.c | |
parent | 37b685c3558513e32b30418c9fbc057d83a7ff53 (diff) | |
download | libusb-47c83183c080c866c54bcf886e535ff7db907bb8.tar.gz |
r122: fixed poll conflict on cygwin (all compat functions renamed to _libusb_####)
- fixed sscanf_s undefined for non MS compilers
- fixed cygiwn warnings in windows_usb.c
Diffstat (limited to 'examples/xusb.c')
-rw-r--r-- | examples/xusb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/xusb.c b/examples/xusb.c index c7ec0ba..add6ef0 100644 --- a/examples/xusb.c +++ b/examples/xusb.c @@ -40,11 +40,11 @@ #else #include <unistd.h> #define msleep(msecs) usleep(1000*msecs) -#ifndef sscanf_s -#define sscanf_s sscanf -#endif #endif +#if !defined(_MSC_VER) +#define sscanf_s sscanf +#endif inline static int perr(char const *format, ...) { |