@matheusbsbs / matheus-bagliano / commits / 386ac45102
Fork 0

Define strncasecmp and ftruncate for MSVC

Signed-off-by: Marius Storm-Olsen <mstormo@gmail.com> Acked-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Marius Storm-Olsen committed Sep 16, 2009 at 10:20 UTC 386ac45102df71e186d4de62b63a41ae35e71089
1 file changed +2
compat/msvc.h
+2
@@ -10,6 +10,8 @@
10 #define __inline__ __inline
11 #define __attribute__(x)
12 #define va_copy(dst, src) ((dst) = (src))
13 +#define strncasecmp _strnicmp
14 +#define ftruncate _chsize
15
16 static __inline int strcasecmp (const char *s1, const char *s2)
17 {