Commit bcbfff2d authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Apparently MinGW32 doesn't have inet_ntop() or inet_pton() either

parent 8c95808d
Pipeline #3036 passed with stage
in 9 minutes and 58 seconds
......@@ -720,7 +720,7 @@ char* iniSetIpAddress(str_list_t* list, const char* section, const char* key, ui
struct in_addr in_addr;
in_addr.s_addr=htonl(value);
return iniSetString(list, section, key,
#ifdef __BORLANDC__
#if defined(__BORLANDC__) || defined(__MINGW32__)
inet_ntoa(in_addr), // deprecated function call
#else
inet_ntop(AF_INET, &in_addr, buf, sizeof(buf)),
......@@ -1644,7 +1644,7 @@ static uint32_t parseIpAddress(const char* value)
if(strchr(value,'.')==NULL)
return(strtol(value,NULL,0));
#ifdef __BORLANDC__
#if defined(__BORLANDC__) || defined(__MINGW32__)
result = inet_addr(value); // deprecated function call
#else
inet_pton(AF_INET, value, &result);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment