]>
Commit | Line | Data |
---|---|---|
d75f8e61 FL |
1 | #ifndef __MSVC__HEAD |
2 | #define __MSVC__HEAD | |
3 | ||
d75f8e61 FL |
4 | #include <direct.h> |
5 | #include <process.h> | |
6 | #include <malloc.h> | |
7b05949b | 7 | #include <io.h> |
d75f8e61 | 8 | |
b7bd9a73 PO |
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.)*/ | |
12 | ||
d75f8e61 FL |
13 | /* porting function */ |
14 | #define inline __inline | |
15 | #define __inline__ __inline | |
16 | #define __attribute__(x) | |
d27525e5 | 17 | #define strcasecmp _stricmp |
386ac451 MSO |
18 | #define strncasecmp _strnicmp |
19 | #define ftruncate _chsize | |
d0f9dbb9 RJ |
20 | #define strtoull _strtoui64 |
21 | #define strtoll _strtoi64 | |
d75f8e61 | 22 | |
d75f8e61 | 23 | #undef ERROR |
b6f714f8 | 24 | |
f6f470fe JH |
25 | #define ftello _ftelli64 |
26 | ||
7ca46634 | 27 | typedef int sigset_t; |
a822fb85 PO |
28 | /* open for reading, writing, or both (not in fcntl.h) */ |
29 | #define O_ACCMODE (_O_RDONLY | _O_WRONLY | _O_RDWR) | |
7ca46634 | 30 | |
b6f714f8 RJ |
31 | #include "compat/mingw.h" |
32 | ||
d75f8e61 | 33 | #endif |