diff options
-rw-r--r-- | libusb/os/windows_usb.h | 5 | ||||
-rw-r--r-- | libusb/version_nano.h | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/libusb/os/windows_usb.h b/libusb/os/windows_usb.h index 413adfc..a36419e 100644 --- a/libusb/os/windows_usb.h +++ b/libusb/os/windows_usb.h @@ -47,9 +47,8 @@ #if defined(__CYGWIN__ ) #define _stricmp stricmp -// cygwin produces a warning unless these prototypes are defined -extern int _snprintf(char *buffer, size_t count, const char *format, ...); -extern char *_strdup(const char *strSource); +#define _snprintf snprintf +#define _strdup strdup // _beginthreadex is MSVCRT => unavailable for cygwin. Fallback to using CreateThread #define _beginthreadex(a, b, c, d, e, f) CreateThread(a, b, (LPTHREAD_START_ROUTINE)c, d, e, f) #endif diff --git a/libusb/version_nano.h b/libusb/version_nano.h index 5cc4a52..1318c5e 100644 --- a/libusb/version_nano.h +++ b/libusb/version_nano.h @@ -1 +1 @@ -#define LIBUSB_NANO 10920 +#define LIBUSB_NANO 10921 |