mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-06-17 22:02:39 -04:00
Pre Qt v5.11 compatibility
This commit is contained in:
parent
0df1ce9f64
commit
a6a176bf6e
@ -117,6 +117,16 @@ namespace std
|
|||||||
}
|
}
|
||||||
#endif
|
#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
|
inline
|
||||||
bool is_multicast_address (QHostAddress const& host_addr)
|
bool is_multicast_address (QHostAddress const& host_addr)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user