diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-02-13 15:19:12 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-02-13 15:19:12 +0000 |
commit | b1c61c6e1863ae367aa5926858e116eef2ee5ded (patch) | |
tree | 337a3cdf314ff5d6dad37daf85fafcae36c5bde0 | |
parent | c9929d9f8c211161d909cd6acec245be0d6823e8 (diff) | |
download | ruby-b1c61c6e1863ae367aa5926858e116eef2ee5ded.tar.gz |
thread.c: use ASSUME only on gcc 5 or later
* thread.c (rb_fd_no_init): on gcc 4, ASSUME macro affects
something too much.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | thread.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } -#if defined __GNUC__ && __GNUC__ >= 4 +#if defined __GNUC__ && __GNUC__ >= 5 # define rb_fd_no_init(fds) ASSUME(!(fds)->fdset && !(fds)->maxfd) #endif @@ -3640,7 +3640,7 @@ rb_fd_set(int fd, rb_fdset_t *set) #define FD_CLR(i, f) rb_fd_clr((i), (f)) #define FD_ISSET(i, f) rb_fd_isset((i), (f)) -#if defined __GNUC__ && __GNUC__ >= 4 +#if defined __GNUC__ && __GNUC__ >= 5 # define rb_fd_no_init(fds) ASSUME(!(fds)->fdset) #endif |