Turn this into #elif defined(_WIN32)

This commit is contained in:
twinaphex 2017-05-30 02:55:12 +02:00
parent 78a0711bff
commit eeff3b87e8
1 changed files with 2 additions and 2 deletions

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); return sceNetInetNtop(af,src,dst,cnt);
#elif defined(WIIU) #elif defined(WIIU)
return inet_ntop(af, src, dst, cnt); return inet_ntop(af, src, dst, cnt);
#else #elif defined(_WIN32)
if (af == AF_INET) if (af == AF_INET)
{ {
struct sockaddr_in in; 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); sockaddr_in6), dst, cnt, NULL, 0, NI_NUMERICHOST);
return dst; return dst;
} }
#endif
#endif #endif
return NULL; return NULL;
#endif
} }
bool udp_send_packet(const char *host, bool udp_send_packet(const char *host,