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