1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Fix multiple build errors when compiling with MinGW.

This commit is contained in:
Rokas Kupstys
2019-08-04 12:00:38 +03:00
parent eed7039853
commit b391e4c21a
6 changed files with 26 additions and 2 deletions
+4
View File
@@ -436,7 +436,11 @@ IpAddress::~IpAddress()
void IpAddress::Set( const struct sockaddr& addr )
{
#if __MINGW32__
auto ai = (struct sockaddr_in*)&addr;
#else
auto ai = (const struct sockaddr_in*)&addr;
#endif
inet_ntop( AF_INET, &ai->sin_addr, m_text, 17 );
m_number = ai->sin_addr.s_addr;
}