1
2
3
4
5
6#ifndef __MINGW_SUPPORT_H_
7#define __WINGW_SUPPORT_H_ 1
8
9
10#define __INSIDE_MSYS__ 1
11
12#include <windows.h>
13
14
15#define PROT_READ 0x1
16#define PROT_WRITE 0x2
17#define PROT_EXEC 0x4
18#define PROT_NONE 0x0
19
20
21#define MAP_SHARED 0x01
22#define MAP_PRIVATE 0x02
23
24
25#ifndef S_IRGRP
26# define S_IRGRP 0
27#endif
28#ifndef S_IWGRP
29# define S_IWGRP 0
30#endif
31
32
33#define LODWORD(x) ((DWORD)((DWORDLONG)(x)))
34#define HIDWORD(x) ((DWORD)(((DWORDLONG)(x) >> 32) & 0xffffffff))
35
36typedef UINT uint;
37typedef ULONG ulong;
38
39int fsync(int fd);
40void *mmap(void *, size_t, int, int, int, int);
41int munmap(void *, size_t);
42char *strtok_r(char *s, const char *delim, char **save_ptr);
43#include "getline.h"
44
45#endif
46