From ab8f71c03f8334df7b88a725a730d2020f2e9f80 Mon Sep 17 00:00:00 2001 From: Pete Batard Date: Thu, 6 Nov 2014 00:50:01 +0000 Subject: Windows: Fix cygwin64 build * Issue reported by Thejus --- libusb/os/windows_usb.h | 5 ++--- 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 -- cgit v1.2.3