1 /* include/wsockcompat.h
2 * Windows -> Berkeley Sockets compatibility things.
5 #if !defined __XML_WSOCKCOMPAT_H__
6 #define __XML_WSOCKCOMPAT_H__
14 /* the following is a workaround a problem for 'inline' keyword in said
15 header when compiled with Borland C++ 6 */
16 #if defined(__BORLANDC__) && !defined(__cplusplus)
17 #define inline __inline
18 #define _inline __inline
23 /* Check if ws2tcpip.h is a recent version which provides getaddrinfo() */
24 #if defined(GetAddrInfo)
26 #define HAVE_GETADDRINFO
31 #define XML_SOCKLEN_T int
34 #define ECONNRESET WSAECONNRESET
37 #define EINPROGRESS WSAEINPROGRESS
40 #define EINTR WSAEINTR
43 #define ESHUTDOWN WSAESHUTDOWN
46 #define EWOULDBLOCK WSAEWOULDBLOCK
49 #endif /* __XML_WSOCKCOMPAT_H__ */