include: Add defines for NI_MAXHOST and NI_MAXSERV to ws2tcpip.h.

oldstable
Rob Shearman 2009-04-01 17:13:38 +01:00 committed by Alexandre Julliard
parent 391fce6e53
commit 9993b0a079
1 changed files with 8 additions and 0 deletions

View File

@ -92,6 +92,14 @@ typedef ADDRINFOA ADDRINFO, *LPADDRINFO;
# define WS_EAI_SOCKTYPE WSAESOCKTNOSUPPORT
#endif
#ifndef USE_WS_PREFIX
# define NI_MAXHOST 1025
# define NI_MAXSERV 32
#else
# define WS_NI_MAXHOST 1025
# define WS_NI_MAXSERV 32
#endif
/* Possible Windows flags for getnameinfo() */
#ifndef USE_WS_PREFIX
# define NI_NOFQDN 0x01