mirror of
https://github.com/ValveSoftware/GameNetworkingSockets.git
synced 2026-05-29 16:20:34 +00:00
Fix clang compiler warning.
steamnetworkingtypes.h:202:3: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types] Honestly surprised we haven't hit this before already. A partner found the warning in the Steamworks SDK version.
This commit is contained in:
@@ -215,18 +215,18 @@ struct SteamNetworkingIPAddr
|
||||
/// (This means that you cannot tell if a zero port was explicitly specified.)
|
||||
inline bool ParseString( const char *pszStr );
|
||||
|
||||
/// RFC4038, section 4.2
|
||||
struct IPv4MappedAddress {
|
||||
uint64 m_8zeros;
|
||||
uint16 m_0000;
|
||||
uint16 m_ffff;
|
||||
uint8 m_ip[ 4 ]; // NOTE: As bytes, i.e. network byte order
|
||||
};
|
||||
|
||||
union
|
||||
{
|
||||
uint8 m_ipv6[ 16 ];
|
||||
#ifndef API_GEN // API generator doesn't understand this. The bindings will just use the accessors
|
||||
struct // IPv4 "mapped address" (rfc4038 section 4.2)
|
||||
{
|
||||
uint64 m_8zeros;
|
||||
uint16 m_0000;
|
||||
uint16 m_ffff;
|
||||
uint8 m_ip[ 4 ]; // NOTE: As bytes, i.e. network byte order
|
||||
} m_ipv4;
|
||||
#endif
|
||||
IPv4MappedAddress m_ipv4;
|
||||
};
|
||||
uint16 m_port; // Host byte order
|
||||
|
||||
|
||||
Reference in New Issue
Block a user