From: Marius Storm-Olsen Date: Wed, 16 Sep 2009 08:20:27 +0000 (+0200) Subject: Define strncasecmp and ftruncate for MSVC X-Git-Tag: v1.6.5-rc2~15 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=386ac45102df71e186d4de62b63a41ae35e71089;p=git.git Define strncasecmp and ftruncate for MSVC Signed-off-by: Marius Storm-Olsen Acked-by: Johannes Sixt Signed-off-by: Junio C Hamano --- diff --git a/compat/msvc.h b/compat/msvc.h index 53a6d30c0..9c753a560 100644 --- a/compat/msvc.h +++ b/compat/msvc.h @@ -10,6 +10,8 @@ #define __inline__ __inline #define __attribute__(x) #define va_copy(dst, src) ((dst) = (src)) +#define strncasecmp _strnicmp +#define ftruncate _chsize static __inline int strcasecmp (const char *s1, const char *s2) {