(Win32) Start trying to implement Win32 backend for net_ifinfo.c

This commit is contained in:
twinaphex 2016-03-03 04:11:24 +01:00
parent dfa315f0d5
commit 966f267285

View File

@ -40,7 +40,6 @@
void net_ifinfo_free(net_ifinfo_t *list)
{
#ifndef _WIN32
unsigned k;
if (!list)
@ -64,12 +63,13 @@ void net_ifinfo_free(net_ifinfo_t *list)
}
free(list->entries);
free(list);
#endif
}
bool net_ifinfo_new(net_ifinfo_t *list)
{
#ifndef _WIN32
#ifdef _WIN32
return false;
#else
unsigned k = 0;
struct ifaddrs *ifa = NULL;
struct ifaddrs *ifaddr = NULL;