From 386ac45102df71e186d4de62b63a41ae35e71089 Mon Sep 17 00:00:00 2001 From: Marius Storm-Olsen Date: Wed, 16 Sep 2009 10:20:27 +0200 Subject: [PATCH] Define strncasecmp and ftruncate for MSVC Signed-off-by: Marius Storm-Olsen Acked-by: Johannes Sixt Signed-off-by: Junio C Hamano --- compat/msvc.h | 2 ++ 1 file changed, 2 insertions(+) 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) { -- 2.30.2