summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Dickens <christopher.a.dickens@gmail.com>2016-01-06 21:52:36 -0800
committerChris Dickens <christopher.a.dickens@gmail.com>2016-01-06 22:15:31 -0800
commit3313f48c107b7c14676f53feba445f2259ac49ae (patch)
tree5dd38a9957debdd984e3e23f4b833a639bebde88
parente10a652b4b74e1c7d5f0e5ecd512094425cee5c8 (diff)
downloadlibusb-3313f48c107b7c14676f53feba445f2259ac49ae.tar.gz
Windows: Use strcasecmp() instead of stricmp() on Cygwin
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>
-rw-r--r--libusb/os/windows_usb.h2
-rw-r--r--libusb/version_nano.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/libusb/os/windows_usb.h b/libusb/os/windows_usb.h
index d8871f0..3ddfa69 100644
--- a/libusb/os/windows_usb.h
+++ b/libusb/os/windows_usb.h
@@ -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
diff --git a/libusb/version_nano.h b/libusb/version_nano.h
index 989a9a4..e660ec4 100644
--- a/libusb/version_nano.h
+++ b/libusb/version_nano.h
@@ -1 +1 @@
-#define LIBUSB_NANO 11022
+#define LIBUSB_NANO 11023