Commit ffeda154 authored by Alexandre Julliard's avatar Alexandre Julliard

Fixed WS_FD_CLR and WS_FD_SET macros (spotted by Thomas Kho).

parent 219e76fd
......@@ -417,7 +417,7 @@ typedef struct WS(timeval)
} TIMEVAL, *PTIMEVAL, *LPTIMEVAL;
#endif
#define WINE_FD_CLR(fd, set, cast) do { \
#define __WS_FD_CLR(fd, set, cast) do { \
u_int __i; \
for (__i = 0; __i < ((cast*)(set))->fd_count ; __i++) \
{ \
......@@ -467,8 +467,8 @@ typedef struct WS(timeval)
#define FD_ZERO(set) (((fd_set*)(set))->fd_count=0)
#define FD_ISSET(fd, set) __WSAFDIsSet((SOCKET)(fd), (fd_set*)(set))
#else
#define WS_FD_CLR(fd, set) WINE_FD_CLR((fd),(set), WS_fd_set)
#define WS_FD_SET(fd, set) WINE_FD_SET((fd),(set), WS_fd_set)
#define WS_FD_CLR(fd, set) __WS_FD_CLR((fd),(set), WS_fd_set)
#define WS_FD_SET(fd, set) __WS_FD_SET((fd),(set), WS_fd_set)
#define WS_FD_ZERO(set) ((WS_fd_set*)(set))->fd_count=0)
#define WS_FD_ISSET(fd, set) __WSAFDIsSet((SOCKET)(fd), (WS_fd_set*)(set))
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment