1#ifndef __MSVC__HEAD
2#define __MSVC__HEAD
34
#include <direct.h>
5#include <process.h>
6#include <malloc.h>
7#include <io.h>
89
/* 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
1819
#undef ERROR
2021
typedef int sigset_t;
22/* open for reading, writing, or both (not in fcntl.h) */
23#define O_ACCMODE (_O_RDONLY | _O_WRONLY | _O_RDWR)
2425
#include "compat/mingw.h"
2627
#endif