master
 1#ifndef WIN32_LEAN_AND_MEAN
 2#define WIN32_LEAN_AND_MEAN
 3#endif
 4#undef  __CRT__NO_INLINE
 5#define __CRT__NO_INLINE
 6#include <stdlib.h>
 7#include <winsock2.h>
 8#include <ws2tcpip.h>
 9
10char *gai_strerrorA(int ecode)
11{
12	static char buff[GAI_STRERROR_BUFFER_SIZE + 1];
13	wcstombs(buff, gai_strerrorW(ecode), GAI_STRERROR_BUFFER_SIZE + 1);
14	return buff;
15}