mirror of
https://github.com/matrix-construct/construct
synced 2024-12-29 00:44:17 +01:00
librb: rb_lib: undefine any previous errno consts on win32
This commit is contained in:
parent
09f528c24c
commit
38b68802a3
1 changed files with 8 additions and 17 deletions
|
@ -88,38 +88,29 @@ typedef int rb_platform_fd_t;
|
|||
#define strerror(x) rb_strerror(x)
|
||||
char *rb_strerror(int error);
|
||||
|
||||
|
||||
#ifndef ENOBUFS
|
||||
#undef ENOBUFS
|
||||
#define ENOBUFS WSAENOBUFS
|
||||
#endif
|
||||
|
||||
#ifndef EINPROGRESS
|
||||
#undef EINPROGRESS
|
||||
#define EINPROGRESS WSAEINPROGRESS
|
||||
#endif
|
||||
|
||||
#ifndef EWOULDBLOCK
|
||||
#undef EWOULDBLOCK
|
||||
#define EWOULDBLOCK WSAEWOULDBLOCK
|
||||
#endif
|
||||
|
||||
#ifndef EMSGSIZE
|
||||
#undef EMSGSIZE
|
||||
#define EMSGSIZE WSAEMSGSIZE
|
||||
#endif
|
||||
|
||||
#ifndef EALREADY
|
||||
#undef EALREADY
|
||||
#define EALREADY WSAEALREADY
|
||||
#endif
|
||||
|
||||
#ifndef EISCONN
|
||||
#undef EISCONN
|
||||
#define EISCONN WSAEISCONN
|
||||
#endif
|
||||
|
||||
#ifndef EADDRINUSE
|
||||
#undef EADDRINUSE
|
||||
#define EADDRINUSE WSAEADDRINUSE
|
||||
#endif
|
||||
|
||||
#ifndef EAFNOSUPPORT
|
||||
#undef EAFNOSUPPORT
|
||||
#define EAFNOSUPPORT WSAEAFNOSUPPORT
|
||||
#endif
|
||||
|
||||
#define pipe(x) _pipe(x, 1024, O_BINARY)
|
||||
#define ioctl(x,y,z) ioctlsocket(x,y, (u_long *)z)
|
||||
|
|
Loading…
Reference in a new issue