define guards to prevent warnings
This commit is contained in:
parent
d89925ffba
commit
20634976e9
|
|
@ -46,10 +46,22 @@ typedef int socklen_t;
|
|||
typedef unsigned short sa_family_t;
|
||||
# endif
|
||||
|
||||
# define EAGAIN WSAEWOULDBLOCK
|
||||
# define EADDRNOTAVAIL WSAEADDRNOTAVAIL
|
||||
# define EAFNOSUPPORT WSAEAFNOSUPPORT
|
||||
# define ECONNRESET WSAECONNRESET
|
||||
# ifndef EAGAIN
|
||||
# define EAGAIN WSAEWOULDBLOCK
|
||||
# endif
|
||||
|
||||
# ifndef EADDRNOTAVAIL
|
||||
# define EADDRNOTAVAIL WSAEADDRNOTAVAIL
|
||||
# endif
|
||||
|
||||
# ifndef EAFNOSUPPORT
|
||||
# define EAFNOSUPPORT WSAEAFNOSUPPORT
|
||||
# endif
|
||||
|
||||
# ifndef ECONNRESET
|
||||
# define ECONNRESET WSAECONNRESET
|
||||
# endif
|
||||
|
||||
typedef u_long ioctlarg_t;
|
||||
# define socketError WSAGetLastError( )
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user