Fixed C++ out-of-order designated initialization on MacOS with gcc

This commit is contained in:
XieHan
2022-08-18 16:54:15 +08:00
parent eb1315d2ff
commit 6fd332c4f4
2 changed files with 2 additions and 12 deletions

View File

@@ -52,12 +52,7 @@ struct addrinfo ComplexDnsTask::hints =
{
.ai_flags = AI_NUMERICSERV | AI_NUMERICHOST,
.ai_family = AF_UNSPEC,
.ai_socktype = SOCK_STREAM,
.ai_protocol = 0,
.ai_addrlen = 0,
.ai_addr = NULL,
.ai_canonname = NULL,
.ai_next = NULL
.ai_socktype = SOCK_STREAM
};
CommMessageOut *ComplexDnsTask::message_out()

View File

@@ -56,12 +56,7 @@ static constexpr struct addrinfo __ai_hints =
.ai_flags = 0,
#endif
.ai_family = AF_UNSPEC,
.ai_socktype = SOCK_STREAM,
.ai_protocol = 0,
.ai_addrlen = 0,
.ai_addr = NULL,
.ai_canonname = NULL,
.ai_next = NULL
.ai_socktype = SOCK_STREAM
};
struct DnsContext