# ifdef __GNUC__ /* mingw is more close to unix than msvc */
# if !defined(__daddr_t_defined)
# define environ _environ
# define execlpe _execlpe
# define execvpe _execvpe
# define isascii __isascii
# define sleep(x) Sleep((x) * 1000)
# define sys_errlist _sys_errlist
# define sys_nerr _sys_nerr
# define O_RDONLY _O_RDONLY
# define O_WRONLY _O_WRONLY
# define O_APPEND _O_APPEND
# define O_CREAT _O_CREAT
# define O_TRUNC _O_TRUNC
# define O_BINARY _O_BINARY
# define S_IFDIR _S_IFDIR
# define S_IFCHR _S_IFCHR
# define S_IFREG _S_IFREG
# define S_IREAD _S_IREAD
# define S_IWRITE _S_IWRITE
# define S_IEXEC _S_IEXEC