mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
thread.c: fix for VC
* thread.c (rb_fd_no_init): make void same as rb_fd_init_copy. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
87577a1f80
commit
cd89148199
1 changed files with 2 additions and 2 deletions
4
thread.c
4
thread.c
|
@ -3573,7 +3573,7 @@ rb_fd_select(int n, rb_fdset_t *readfds, rb_fdset_t *writefds, rb_fdset_t *excep
|
||||||
return select(n, r, w, e, timeout);
|
return select(n, r, w, e, timeout);
|
||||||
}
|
}
|
||||||
|
|
||||||
#define rb_fd_no_init(fds) (((fds)->fdset = 0), ((fds)->maxfd = 0))
|
#define rb_fd_no_init(fds) ((void)((fds)->fdset = 0), (void)((fds)->maxfd = 0))
|
||||||
|
|
||||||
#undef FD_ZERO
|
#undef FD_ZERO
|
||||||
#undef FD_SET
|
#undef FD_SET
|
||||||
|
@ -3638,7 +3638,7 @@ rb_fd_set(int fd, rb_fdset_t *set)
|
||||||
#define FD_CLR(i, f) rb_fd_clr((i), (f))
|
#define FD_CLR(i, f) rb_fd_clr((i), (f))
|
||||||
#define FD_ISSET(i, f) rb_fd_isset((i), (f))
|
#define FD_ISSET(i, f) rb_fd_isset((i), (f))
|
||||||
|
|
||||||
#define rb_fd_no_init(fds) ((fds)->fdset = 0)
|
#define rb_fd_no_init(fds) (void)((fds)->fdset = 0)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue