diff options
Diffstat (limited to 'libusb/libusbi.h')
-rw-r--r-- | libusb/libusbi.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libusb/libusbi.h b/libusb/libusbi.h index c9b402d..7293901 100644 --- a/libusb/libusbi.h +++ b/libusb/libusbi.h @@ -56,6 +56,11 @@ #define USBI_CAP_HAS_HID_ACCESS 0x00010000 #define USBI_CAP_SUPPORTS_DETACH_KERNEL_DRIVER 0x00020000 +/* Maximum number of bytes in a log line */ +#define USBI_MAX_LOG_LEN 256 +/* Terminator for log lines */ +#define USBI_LOG_LINE_END "\n" + /* The following is used to silence warnings for unused variables */ #define UNUSED(var) do { (void)(var); } while(0) @@ -447,6 +452,11 @@ int usbi_gettimeofday(struct timeval *tp, void *tzp); #endif #endif +#if (defined(OS_WINDOWS) || defined(OS_WINCE)) && !defined(__GCC__) +#define snprintf _snprintf +#define vsnprintf _vsnprintf +#endif + struct usbi_pollfd { /* must come first */ struct libusb_pollfd pollfd; |