Turn this into #elif defined(_WIN32)

This commit is contained in:
twinaphex 2017-05-30 02:55:12 +02:00
parent 78a0711bff
commit eeff3b87e8

View File

@ -369,7 +369,7 @@ const char *inet_ntop_compat(int af, const void *src, char *dst, socklen_t cnt)
return sceNetInetNtop(af,src,dst,cnt);
#elif defined(WIIU)
return inet_ntop(af, src, dst, cnt);
#else
#elif defined(_WIN32)
if (af == AF_INET)
{
struct sockaddr_in in;
@ -391,10 +391,10 @@ const char *inet_ntop_compat(int af, const void *src, char *dst, socklen_t cnt)
sockaddr_in6), dst, cnt, NULL, 0, NI_NUMERICHOST);
return dst;
}
#endif
#endif
return NULL;
#endif
}
bool udp_send_packet(const char *host,