Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-12-01 15:41:45 +0300
committerJunio C Hamano <gitster@pobox.com>2018-12-01 15:41:45 +0300
commitc0e286a3d24045fc32824f7790d600e9a0fe312c (patch)
tree863009c1a7b67c332b4a1111052e188c775d6921 /compat
parent623370493673d27c1994ea4394f123e4ed0a20bc (diff)
parentd27525e519310b515b3014cef5920f80930a20ce (diff)
Merge branch 'ss/msvc-strcasecmp'
MSVC update. * ss/msvc-strcasecmp: msvc: directly use MS version (_stricmp) of strcasecmp
Diffstat (limited to 'compat')
-rw-r--r--compat/msvc.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/compat/msvc.h b/compat/msvc.h
index 580bb55bf4a..29a8ce82043 100644
--- a/compat/msvc.h
+++ b/compat/msvc.h
@@ -10,18 +10,12 @@
#define inline __inline
#define __inline__ __inline
#define __attribute__(x)
+#define strcasecmp _stricmp
#define strncasecmp _strnicmp
#define ftruncate _chsize
#define strtoull _strtoui64
#define strtoll _strtoi64
-static __inline int strcasecmp (const char *s1, const char *s2)
-{
- int size1 = strlen(s1);
- int sisz2 = strlen(s2);
- return _strnicmp(s1, s2, sisz2 > size1 ? sisz2 : size1);
-}
-
#undef ERROR
#include "compat/mingw.h"