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

This commit is contained in:
Alexandre Julliard 2005-03-08 16:25:59 +00:00
parent 219e76fd06
commit ffeda154a1
1 changed files with 3 additions and 3 deletions

View File

@ -417,7 +417,7 @@ typedef struct WS(timeval)
} TIMEVAL, *PTIMEVAL, *LPTIMEVAL; } TIMEVAL, *PTIMEVAL, *LPTIMEVAL;
#endif #endif
#define WINE_FD_CLR(fd, set, cast) do { \ #define __WS_FD_CLR(fd, set, cast) do { \
u_int __i; \ u_int __i; \
for (__i = 0; __i < ((cast*)(set))->fd_count ; __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_ZERO(set) (((fd_set*)(set))->fd_count=0)
#define FD_ISSET(fd, set) __WSAFDIsSet((SOCKET)(fd), (fd_set*)(set)) #define FD_ISSET(fd, set) __WSAFDIsSet((SOCKET)(fd), (fd_set*)(set))
#else #else
#define WS_FD_CLR(fd, set) WINE_FD_CLR((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) WINE_FD_SET((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_ZERO(set) ((WS_fd_set*)(set))->fd_count=0)
#define WS_FD_ISSET(fd, set) __WSAFDIsSet((SOCKET)(fd), (WS_fd_set*)(set)) #define WS_FD_ISSET(fd, set) __WSAFDIsSet((SOCKET)(fd), (WS_fd_set*)(set))
#endif #endif