mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2024-11-26 14:55:42 +01:00
network: fix mingw-w64 build
The header "combaseapi.h" of mingw-w64 defines "interface" as "struct".
This commit is contained in:
parent
b18e1d031f
commit
e660334a21
@ -368,10 +368,10 @@ std::optional<IPv4Address> GetHostIPv4Address() {
|
|||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto res = std::ranges::find_if(network_interfaces,
|
const auto res =
|
||||||
[&selected_network_interface](const auto& interface) {
|
std::ranges::find_if(network_interfaces, [&selected_network_interface](const auto& iface) {
|
||||||
return interface.name == selected_network_interface;
|
return iface.name == selected_network_interface;
|
||||||
});
|
});
|
||||||
|
|
||||||
if (res != network_interfaces.end()) {
|
if (res != network_interfaces.end()) {
|
||||||
char ip_addr[16] = {};
|
char ip_addr[16] = {};
|
||||||
|
Loading…
Reference in New Issue
Block a user