Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Define strncasecmp and ftruncate for MSVC
author
Marius Storm-Olsen
<mstormo@gmail.com>
Wed, 16 Sep 2009 08:20:27 +0000
(10:20 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Sat, 19 Sep 2009 03:00:42 +0000
(20:00 -0700)
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>
compat/msvc.h
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
435bdf8
)
diff --git
a/compat/msvc.h
b/compat/msvc.h
index 53a6d30c02597bd5095582181419b333b7bffccb..9c753a560fcadb44a6e4afb22828584b6fd20db3 100644
(file)
--- 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)
{