Windows: Use strcasecmp() instead of stricmp() on Cygwin
authorChris Dickens <christopher.a.dickens@gmail.com>
Thu, 7 Jan 2016 05:52:36 +0000 (21:52 -0800)
committerChris Dickens <christopher.a.dickens@gmail.com>
Thu, 7 Jan 2016 06:15:31 +0000 (22:15 -0800)
Cygwin does not define the latter in all versions, so this commit
uses the former POSIX function that Cygwin does provide.

Closes #104

Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
libusb/os/windows_usb.h
libusb/version_nano.h

index d8871f0..3ddfa69 100644 (file)
@@ -48,7 +48,7 @@
 #endif
 
 #if defined(__CYGWIN__ )
-#define _stricmp stricmp
+#define _stricmp strcasecmp
 #define _snprintf snprintf
 #define _strdup strdup
 // _beginthreadex is MSVCRT => unavailable for cygwin. Fallback to using CreateThread
index 989a9a4..e660ec4 100644 (file)
@@ -1 +1 @@
-#define LIBUSB_NANO 11022
+#define LIBUSB_NANO 11023