#include #include #ifdef __MINGW32__ #include "windows.h" #include struct iovec { LPCVOID iov_base; DWORD iov_len; }; #else #include #endif #include "errmsg.h" #include "str.h" extern int errmsg_cvt(struct iovec* x,const char* message, va_list a); void errmsg_warn(const char* message, ...) { struct iovec x[23]; va_list a; va_start(a,message); #ifdef __MINGW32__ { int i,j; j=errmsg_cvt(x,message,a); for (i=0; i