4 /* Define minimize windows version */
6 #define _WIN32_WINNT 0x0500
7 #define _WIN32_WINDOWS 0x0410
8 #define _WIN32_IE 0x0700
9 #define NTDDI_VERSION NTDDI_WIN2KSP1
15 /* porting function */
16 #define inline __inline
17 #define __inline__ __inline
18 #define __attribute__(x)
19 #define va_copy(dst, src) ((dst) = (src))
21 static __inline int strcasecmp (const char *s1, const char *s2)
23 int size1 = strlen(s1);
24 int sisz2 = strlen(s2);
25 return _strnicmp(s1, s2, sisz2 > size1 ? sisz2 : size1);
31 #include "compat/mingw.h"
34 #define _stat64(x,y) mingw_lstat(x,y)
37 Even though _stati64 is normally just defined at _stat64
38 on Windows, we specify it here as a proper struct to avoid
39 compiler warnings about macro redefinition due to magic in
40 mingw.h. Struct taken from ReactOS (GNU GPL license).
45 unsigned short st_mode;