define guards to prevent warnings
This commit is contained in:
1 parent
d89925ffba
commit
20634976e9
1 file changed
+16
-4
+16
-4
@@ -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( )
|
||||
|
||||
|
||||
Reference in new issue
Block a user