test-mergesort: add test subcommand
[git/debian.git] / compat / msvc.h
blob1d7a8c614565a6088f92f7c06d79210476ce505e
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 #pragma warning(disable: 4018) /* signed/unsigned comparison */
10 #pragma warning(disable: 4244) /* type conversion, possible loss of data */
11 #pragma warning(disable: 4090) /* 'function' : different 'const' qualifiers (ALLOC_GROW etc.)*/
13 /* porting function */
14 #define inline __inline
15 #define __inline__ __inline
16 #define __attribute__(x)
17 #define strcasecmp _stricmp
18 #define strncasecmp _strnicmp
19 #define ftruncate _chsize
20 #define strtoull _strtoui64
21 #define strtoll _strtoi64
23 #undef ERROR
25 #define ftello _ftelli64
27 typedef int sigset_t;
28 /* open for reading, writing, or both (not in fcntl.h) */
29 #define O_ACCMODE (_O_RDONLY | _O_WRONLY | _O_RDWR)
31 #include "compat/mingw.h"
33 #endif