d7525cf61dabf66d4c9e42cc33bda4346720f61d
1#ifndef __MSVC__HEAD
2#define __MSVC__HEAD
3
4#include <direct.h>
5#include <process.h>
6#include <malloc.h>
7#include <io.h>
8
9/* porting function */
10#define inline __inline
11#define __inline__ __inline
12#define __attribute__(x)
13#define strcasecmp _stricmp
14#define strncasecmp _strnicmp
15#define ftruncate _chsize
16#define strtoull _strtoui64
17#define strtoll _strtoi64
18
19#undef ERROR
20
21#define ftello _ftelli64
22
23typedef int sigset_t;
24/* open for reading, writing, or both (not in fcntl.h) */
25#define O_ACCMODE (_O_RDONLY | _O_WRONLY | _O_RDWR)
26
27#include "compat/mingw.h"
28
29#endif