Commit fc10ba8f authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

include: Add a stub implementation of gai_strerror{A,W}.

parent b4ee082d
......@@ -112,6 +112,38 @@ typedef ADDRINFOA ADDRINFO, *LPADDRINFO;
extern "C" {
#endif
#define GAI_STRERROR_BUFFER_SIZE 1024
static inline char *gai_strerrorA(int errcode)
{
static char buffer[GAI_STRERROR_BUFFER_SIZE + 1];
/* FIXME: should format message from system, ignoring inserts in neutral
* language */
buffer[0] = '\0';
return buffer;
}
static inline WCHAR *gai_strerrorW(int errcode)
{
static WCHAR buffer[GAI_STRERROR_BUFFER_SIZE + 1];
/* FIXME: should format message from system, ignoring inserts in neutral
* language */
buffer[0] = '\0';
return buffer;
}
#ifdef USE_WS_PREFIX
# define WS_gai_strerror WINELIB_NAME_AW(gai_strerror)
#elif defined(WINE_NO_UNICODE_MACROS)
# define gai_strerror gai_strerrorA
#else
# define gai_strerror WINELIB_NAME_AW(gai_strerror)
#endif
void WINAPI WS(freeaddrinfo)(LPADDRINFO);
#define FreeAddrInfoA WS(freeaddrinfo)
void WINAPI FreeAddrInfoW(PADDRINFOW);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment