9 #define inline __inline
10 #define __inline__ __inline
11 #define __attribute__(x)
12 #define va_copy(dst, src) ((dst) = (src))
13 #define strncasecmp _strnicmp
14 #define ftruncate _chsize
16 static __inline
int strcasecmp (const char *s1
, const char *s2
)
18 int size1
= strlen(s1
);
19 int sisz2
= strlen(s2
);
20 return _strnicmp(s1
, s2
, sisz2
> size1
? sisz2
: size1
);
26 #include "compat/mingw.h"
29 #define _stat64(x,y) mingw_lstat(x,y)
32 Even though _stati64 is normally just defined at _stat64
33 on Windows, we specify it here as a proper struct to avoid
34 compiler warnings about macro redefinition due to magic in
35 mingw.h. Struct taken from ReactOS (GNU GPL license).
40 unsigned short st_mode
;