diff options
| author | comex <comexk@gmail.com> | 2023-06-25 17:00:05 -0700 |
|---|---|---|
| committer | comex <comexk@gmail.com> | 2023-06-25 17:06:57 -0700 |
| commit | ac939f08a4c116b6a38978358b667b1fa0c51ef9 (patch) | |
| tree | d056a56751a46f31b2b4f8e2d7b0de31fc5de1db /src/core/internal_network/network.h | |
| parent | 42015de49b578108a1a82b8df947397d2d123ad4 (diff) | |
Fix more Windows build errors
I did test this beforehand, but not on MinGW, and the error that showed
up on the msvc builder didn't happen for me...
Diffstat (limited to 'src/core/internal_network/network.h')
| -rw-r--r-- | src/core/internal_network/network.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/internal_network/network.h b/src/core/internal_network/network.h index 96319bfc8..badcb8369 100644 --- a/src/core/internal_network/network.h +++ b/src/core/internal_network/network.h @@ -5,6 +5,7 @@ #include <array> #include <optional> +#include <vector> #include "common/common_funcs.h" #include "common/common_types.h" @@ -113,7 +114,8 @@ std::optional<IPv4Address> GetHostIPv4Address(); std::string IPv4AddressToString(IPv4Address ip_addr); u32 IPv4AddressToInteger(IPv4Address ip_addr); -Common::Expected<std::vector<AddrInfo>, GetAddrInfoError> GetAddrInfo( +// named to avoid name collision with Windows macro +Common::Expected<std::vector<AddrInfo>, GetAddrInfoError> GetAddressInfo( const std::string& host, const std::optional<std::string>& service); } // namespace Network |
