| #define __inline__ __inline |
| #define va_copy(dst, src) ((dst) = (src)) |
| #define strncasecmp _strnicmp |
| #define ftruncate _chsize |
| static __inline int strcasecmp (const char *s1, const char *s2) |
| return _strnicmp(s1, s2, sisz2 > size1 ? sisz2 : size1); |
| #include "compat/mingw.h" |
| #define _stat64(x,y) mingw_lstat(x,y) |
| Even though _stati64 is normally just defined at _stat64 |
| on Windows, we specify it here as a proper struct to avoid |
| compiler warnings about macro redefinition due to magic in |
| mingw.h. Struct taken from ReactOS (GNU GPL license). |