refs: handle "refs/bisect/" in `loose_fill_ref_dir()`
[git/debian.git] / compat / msvc.h
blob580bb55bf4a71d9a968a0875e2af827c94785313
1 #ifndef __MSVC__HEAD
2 #define __MSVC__HEAD
4 #include <direct.h>
5 #include <process.h>
6 #include <malloc.h>
7 #include <io.h>
9 /* porting function */
10 #define inline __inline
11 #define __inline__ __inline
12 #define __attribute__(x)
13 #define strncasecmp _strnicmp
14 #define ftruncate _chsize
15 #define strtoull _strtoui64
16 #define strtoll _strtoi64
18 static __inline int strcasecmp (const char *s1, const char *s2)
20 int size1 = strlen(s1);
21 int sisz2 = strlen(s2);
22 return _strnicmp(s1, s2, sisz2 > size1 ? sisz2 : size1);
25 #undef ERROR
27 #include "compat/mingw.h"
29 #endif