mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-28 03:27:46 +08:00
Cygwin: fifo: fix type of fifo_reader_id_t operators
fifo_reader_id_t::operator == and != have been defined without type accidentally. For some weird reason, only x86 gcc complains about this problem, not x86_64 gcc. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
e6ddeca1d3
commit
2125ca8a69
@ -1308,12 +1308,12 @@ struct fifo_reader_id_t
|
||||
|
||||
operator bool () const { return winpid != 0 || fh != NULL; }
|
||||
|
||||
friend operator == (const fifo_reader_id_t &l, const fifo_reader_id_t &r)
|
||||
friend bool operator == (const fifo_reader_id_t &l, const fifo_reader_id_t &r)
|
||||
{
|
||||
return l.winpid == r.winpid && l.fh == r.fh;
|
||||
}
|
||||
|
||||
friend operator != (const fifo_reader_id_t &l, const fifo_reader_id_t &r)
|
||||
friend bool operator != (const fifo_reader_id_t &l, const fifo_reader_id_t &r)
|
||||
{
|
||||
return l.winpid != r.winpid || l.fh != r.fh;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user