Skip to content

Commit 386ac45

Browse files
mstormogitster
authored andcommitted
Define strncasecmp and ftruncate for MSVC
Signed-off-by: Marius Storm-Olsen <[email protected]> Acked-by: Johannes Sixt <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 435bdf8 commit 386ac45

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compat/msvc.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
#define __inline__ __inline
1111
#define __attribute__(x)
1212
#define va_copy(dst, src) ((dst) = (src))
13+
#define strncasecmp _strnicmp
14+
#define ftruncate _chsize
1315

1416
static __inline int strcasecmp (const char *s1, const char *s2)
1517
{

0 commit comments

Comments
 (0)