| #define __inline__ __inline |
| #define strncasecmp _strnicmp |
| #define ftruncate _chsize |
| static __inline int strcasecmp (const char *s1, const char *s2) |
| return _strnicmp(s1, s2, sisz2 > size1 ? sisz2 : size1); |
| /* Use mingw_lstat() instead of lstat()/stat() and mingw_fstat() instead |
| * of fstat(). We add the declaration of these functions here, suppressing |
| * the corresponding declarations in mingw.h, so that we can use the |
| * appropriate structure type (and function) names from the msvc headers. |
| int mingw_lstat(const char *file_name, struct stat *buf); |
| int mingw_fstat(int fd, struct stat *buf); |
| #define fstat mingw_fstat |
| #define lstat mingw_lstat |
| #define _stat64(x,y) mingw_lstat(x,y) |
| #define ALREADY_DECLARED_STAT_FUNCS |
| #include "compat/mingw.h" |
| #undef ALREADY_DECLARED_STAT_FUNCS |