From 38b68802a354865924009ab7a1e54ff37de1a990 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Sun, 20 Mar 2016 03:41:25 -0500 Subject: [PATCH] librb: rb_lib: undefine any previous errno consts on win32 --- librb/include/rb_lib.h | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/librb/include/rb_lib.h b/librb/include/rb_lib.h index 626fc78e..bc4eb502 100644 --- a/librb/include/rb_lib.h +++ b/librb/include/rb_lib.h @@ -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)