* include/ws2tcpip.h (getaddrinfo, freeaddrinfo, getnameinfo):
Guard with _WIN32_WINNT >= 0x0501. Add FIXME comment. * gai_strerror[AW]: Put into #if 0 block.
This commit is contained in:
parent
4f7e895a3a
commit
d34d3da637
|
@ -1,3 +1,9 @@
|
||||||
|
2005-03-07 Danny Smith <dannysmith@users.sourceforge.net>
|
||||||
|
|
||||||
|
* include/ws2tcpip.h (getaddrinfo, freeaddrinfo, getnameinfo):
|
||||||
|
Guard with _WIN32_WINNT >= 0x0501. Add FIXME comment.
|
||||||
|
* gai_strerror[AW]: Put into #if 0 block.
|
||||||
|
|
||||||
2005-03-07 Danny Smith <dannysmith@users.sourceforge.net>
|
2005-03-07 Danny Smith <dannysmith@users.sourceforge.net>
|
||||||
|
|
||||||
* include/basetyps.h (__int16): Correct define.
|
* include/basetyps.h (__int16): Correct define.
|
||||||
|
|
|
@ -294,10 +294,19 @@ struct addrinfo {
|
||||||
struct addrinfo *ai_next;
|
struct addrinfo *ai_next;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if (_WIN32_WINNT >= 0x0501)
|
||||||
void WSAAPI freeaddrinfo (struct addrinfo*);
|
void WSAAPI freeaddrinfo (struct addrinfo*);
|
||||||
int WSAAPI getaddrinfo (const char*,const char*,const struct addrinfo*,
|
int WSAAPI getaddrinfo (const char*,const char*,const struct addrinfo*,
|
||||||
struct addrinfo**);
|
struct addrinfo**);
|
||||||
|
int WSAAPI getnameinfo(const struct sockaddr*,socklen_t,char*,DWORD,
|
||||||
|
char*,DWORD,int);
|
||||||
|
#else
|
||||||
|
/* FIXME: Need WS protocol-independent API helpers. */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
/* These are not exported from any known w32api library. Are they
|
||||||
|
implemented as macros or inline finctions? */
|
||||||
char* WSAAPI gai_strerrorA(int);
|
char* WSAAPI gai_strerrorA(int);
|
||||||
WCHAR* WSAAPI gai_strerrorW(int);
|
WCHAR* WSAAPI gai_strerrorW(int);
|
||||||
#ifdef UNICODE
|
#ifdef UNICODE
|
||||||
|
@ -305,10 +314,7 @@ WCHAR* WSAAPI gai_strerrorW(int);
|
||||||
#else
|
#else
|
||||||
#define gai_strerror gai_strerrorA
|
#define gai_strerror gai_strerrorA
|
||||||
#endif /* UNICODE */
|
#endif /* UNICODE */
|
||||||
|
#endif /* 0 */
|
||||||
int WSAAPI getnameinfo(const struct sockaddr*,socklen_t,char*,DWORD,
|
|
||||||
char*,DWORD,int);
|
|
||||||
|
|
||||||
|
|
||||||
/* Some older IPv4/IPv6 compatability stuff */
|
/* Some older IPv4/IPv6 compatability stuff */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue