use inet_* wrapper only on mingw

This commit is contained in:
Benjamin Sergeant 2021-03-23 21:13:18 -07:00
parent 80dff08304
commit c5b5fa82be

View File

@ -129,9 +129,7 @@ namespace ix
// //
const char* inet_ntop(int af, const void* a0, char* s, socklen_t l) const char* inet_ntop(int af, const void* a0, char* s, socklen_t l)
{ {
// wrapper enabled on all platforms for now #if defined(_WIN32) && defined(__GNUC__)
// #if defined(_WIN32) && defined(__GNUC__)
#if 1
const unsigned char* a = (const unsigned char*) a0; const unsigned char* a = (const unsigned char*) a0;
int i, j, max, best; int i, j, max, best;
char buf[100]; char buf[100];
@ -208,9 +206,7 @@ namespace ix
// //
int inet_pton(int af, const char* s, void* a0) int inet_pton(int af, const char* s, void* a0)
{ {
// wrapper enabled on all platforms for now #if defined(_WIN32) && defined(__GNUC__)
// #if defined(_WIN32) && defined(__GNUC__)
#if 1
uint16_t ip[8]; uint16_t ip[8];
unsigned char* a = (unsigned char*) a0; unsigned char* a = (unsigned char*) a0;
int i, j, v, d, brk = -1, need_v4 = 0; int i, j, v, d, brk = -1, need_v4 = 0;