Skip to content

Commit

Permalink
Define strncasecmp and ftruncate for MSVC
Browse files Browse the repository at this point in the history
Signed-off-by: Marius Storm-Olsen <[email protected]>
Acked-by: Johannes Sixt <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
mstormo authored and gitster committed Sep 19, 2009
1 parent 435bdf8 commit 386ac45
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compat/msvc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 386ac45

Please sign in to comment.