Skip to content

Commit ab8f71c

Browse files
committed
Windows: Fix cygwin64 build
* Issue reported by Thejus
1 parent a447fa4 commit ab8f71c

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

libusb/os/windows_usb.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,8 @@
4747

4848
#if defined(__CYGWIN__ )
4949
#define _stricmp stricmp
50-
// cygwin produces a warning unless these prototypes are defined
51-
extern int _snprintf(char *buffer, size_t count, const char *format, ...);
52-
extern char *_strdup(const char *strSource);
50+
#define _snprintf snprintf
51+
#define _strdup strdup
5352
// _beginthreadex is MSVCRT => unavailable for cygwin. Fallback to using CreateThread
5453
#define _beginthreadex(a, b, c, d, e, f) CreateThread(a, b, (LPTHREAD_START_ROUTINE)c, d, e, f)
5554
#endif

libusb/version_nano.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
#define LIBUSB_NANO 10920
1+
#define LIBUSB_NANO 10921

0 commit comments

Comments
 (0)