mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-25 13:48:42 -05:00
Pre Qt v5.11 compatibility
This commit is contained in:
parent
ced3b523ea
commit
ff6f01c6b5
@ -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