mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-22 04:11:16 -05:00
Pre Qt v5.11 compatibility
This commit is contained in:
parent
0df1ce9f64
commit
a6a176bf6e
@ -117,6 +117,16 @@ namespace std
|
||||
}
|
||||
#endif
|
||||
|
||||
inline
|
||||
bool is_broadcast_address (QHostAddress const& host_addr)
|
||||
{
|
||||
#if QT_VERSION >= 0x051100
|
||||
return host_addr.isBroadcast ();
|
||||
#else
|
||||
bool ok;
|
||||
return host_addr.toIPv4Address (&ok) == 0xffffffffu && ok;
|
||||
#endif
|
||||
}
|
||||
|
||||
inline
|
||||
bool is_multicast_address (QHostAddress const& host_addr)
|
||||
|
Loading…
Reference in New Issue
Block a user