]> git.ipfire.org Git - thirdparty/git.git/blobdiff - compat/msvc.h
Merge branch 'mh/pack-protocol-doc-fix'
[thirdparty/git.git] / compat / msvc.h
index 580bb55bf4a71d9a968a0875e2af827c94785313..29a8ce820435d5c67dd5fd9bc23dab0c2e7d8394 100644 (file)
 #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"