Close #16566: Favour WinNT preprocessor version checks over MinGW (#16677)

This commit is contained in:
Silent authored and GitHub committed 2022-03-11 07:59:09 -03:00
1 parent 49fbc30a97
commit 5e725913f8
9 files changed
+40 -88

No files matched your search

+1 -1
View File
@@ -643,7 +643,7 @@ private:
std::string GetIpAddressFromSocket(const sockaddr_in* addr) const
{
std::string result;
# if defined(__MINGW32__)
# if defined(_WIN32_WINNT) && _WIN32_WINNT < 0x0600
if (addr->sin_family == AF_INET)
{
result = inet_ntoa(addr->sin_addr);