diff options
Diffstat (limited to 'libusb/os/windows_usb.h')
-rw-r--r-- | libusb/os/windows_usb.h | 5 |
1 files changed, 2 insertions, 3 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 |