From 072347166f78408dd4a92cb3b75f6673b71a0f7e Mon Sep 17 00:00:00 2001 From: Sebastian Schuberth Date: Wed, 18 May 2011 16:46:56 +0200 Subject: [PATCH] Define str(n)casecmp for MSVC MSVC has _str(n)icmp instead. --- src/msvc-compat.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/msvc-compat.h b/src/msvc-compat.h index d4c031d2d..7422a7aea 100644 --- a/src/msvc-compat.h +++ b/src/msvc-compat.h @@ -17,6 +17,10 @@ # define S_ISREG(m) (((m) & _S_IFMT) == _S_IFREG) # define S_ISFIFO(m) (((m) & _S_IFMT) == _S_IFIFO) +/* case-insensitive string comparision */ +# define strcasecmp _stricmp +# define strncasecmp _strnicmp + #if (_MSC_VER >= 1600) # include #else