summaryrefslogtreecommitdiff
path: root/compat/msvc.h
diff options
context:
space:
mode:
authorMarius Storm-Olsen <mstormo@gmail.com>2009-09-16 08:20:27 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-09-19 03:00:42 (GMT)
commit386ac45102df71e186d4de62b63a41ae35e71089 (patch)
treeb27cdef78900b5f1e4cc2f987f324708e85ece81 /compat/msvc.h
parent435bdf8c7ffa493f8f6f2e8f329f8cc22db16ce6 (diff)
downloadgit-386ac45102df71e186d4de62b63a41ae35e71089.zip
git-386ac45102df71e186d4de62b63a41ae35e71089.tar.gz
git-386ac45102df71e186d4de62b63a41ae35e71089.tar.bz2
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>
Diffstat (limited to 'compat/msvc.h')
-rw-r--r--compat/msvc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/compat/msvc.h b/compat/msvc.h
index 53a6d30..9c753a5 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)
{